Skip to content
Chris Petersen edited this page Oct 16, 2014 · 1 revision

colorflutter returns fluttering color values.

Parameter Description
idx A fluttercolor made with (make-colorflutter c1 c2 t)

Example

Example 1: Make a box which oscillates between Green and Red colors.

;; Place these into the initialization
(set! gui (make-glgui))
(set! mybox (glgui-box gui 0 0 100 100 Black))
(set! myflutter (make-colorflutter Green Red 0.5))
;; Place this one in the main loop
(glgui-widget-set! gui mybox 'color (colorflutter myflutter))
Clone this wiki locally