samples/spiral.rb in cf3-0.0.2 vs samples/spiral.rb in cf3-0.0.3
- old
+ new
@@ -1,8 +1,8 @@
# Contributed by Monkstone.
-load_library :cf3
+require 'cf3'
def setup_the_spiral
@spiral = ContextFree.define do
shape :start do
@@ -14,11 +14,11 @@
star rotation: 0
end
end
shape :base do
- triangle hue: 0.5
+ triangle hue: 180
base rotation: 3, size: 0.98, x: 0.09, brightness: 1.01
end
shape :star do
split do
@@ -48,6 +48,6 @@
def draw_it
background 0.33, 0.25, 0.2
@spiral.render :start, size: height/5, stop_size: 1,
color: [0.35, 0.4, 0.9, 0.25],
start_x: width/2, start_y: height/2
-end
\ No newline at end of file
+end