cyrilcode / cyril

The Cyril programming language is designed for fast prototyping of visualisations and live coding visuals.
http://cyrilcode.com
Other
145 stars 21 forks source link

crash when using an expression as value for step in for loop #7

Open darrenmothersele opened 10 years ago

darrenmothersele commented 10 years ago

Here's an example of how not to draw a circle...

scale 2
rotate
shape
 vert 0,0
 for i: 0 to TWO_PI step 0.1
  vert sin(i),cos(i)
 end
 vert 0,1
end

Change the step value to an expression, eg PI / 2 and everything stops...

 for i: 0 to TWO_PI step PI / 2
darrenmothersele commented 10 years ago

only hangs when for loop is inside shape - probably shape not passing up valid state correctly