vendor/assets/build/medias/rubies/examples/_2_solve.rb in atome-0.5.1.9 vs vendor/assets/build/medias/rubies/examples/_2_solve.rb in atome-0.5.2.5

- old
+ new

@@ -21,16 +21,38 @@ # color doesn't work circle({ id: :circle_123, color: :cyan, left: 233 }) -# big perfomrance problem plus params as left is not interpreted +# big performance problem plus params as left is not interpreted i = 0 while i < 16 b = box({ width: 33, height: 33 }) b.parents([:the_grid]) b.color(:red) b.left((33 + 10) * i) i += 1 # b.drag(true) -end +end + + +# .color (return the color itself instead of the box ) and .red retrun itself too so it's impossible to set green and blue +# another problem : when steeing .red it reset the whole color object and remove green an blue components +box({id: :mybox}) +grab(:my_box).smooth(6).color(:black).red(0.6).green(0.6).blue(0.6) + +# color can't be changed easily + +b=box +b.color.red(1) + +# box in box doesn't work( incorrect node tree error) +b=box({id: :mybox, width: 666, height: 555}) + +b.box() + +# atome i, atome using preset doesn't work + +b=box +c=b.box +c.left(200) \ No newline at end of file