Fuze Arena Logo
  • Forum
  • Creations
    Catalogue Showcase
  • Help

smoothStep()

Purpose

Hermite interpolation

Description

Perform Hermite interpolation between two values

Syntax

result = smoothStep( value0, value1, factor )

Arguments

result Hermite interpolation

value0 left edge value

value1 right edge value

factor interpolation factor

Example

col = { 0, 1, 1, 1 }
// draw lines in a gradient fading from black to cyan 
for i = 0 to gWidth() loop
    col.a = smoothStep( 0, 1, i / gWidth() )
    line( { i, 0 }, { i, gHeight() }, col )
repeat
update()
sleep( 3 )

Associated Commands

bezier(), lerp()

logo

©2019 FUZE Technologies Ltd. FUZE is a registered trademark of FUZE Technologies Ltd. All rights reserved.

Useful links

  • Fuze Main Site
  • Fuze Arena on Twitter
  • Fuze Arena on Youtube
  • Download Buyer

Contact Information

  • FUZE Technologies Ltd
    15 Clearfields Farm
    Wotton Underwood
    Aylesbury, Buckinghamshire
    ​England, HP18 0RS

  • +44 (0) 1844 239 432

  • contact@fuze.co.uk

© Copyright FUZE Technologies Ltd. All rights reserved.