bvssvni / rust-typeresearch

A library of experiments with types and data structures
MIT License
0 stars 0 forks source link

Graphics #3

Open bvssvni opened 10 years ago

bvssvni commented 10 years ago

Having nested methods, for example:

circle(10,10,100,50).swipe(0, 30).draw();
rect(10,10,200,200).margin(10).split(4,4).map(|r| r.margin(2).to_ellipse().draw());
translate(10,0).rotate(30).rectangle(0,0,200,20).draw();
bvssvni commented 10 years ago
View:
  Base transform: 6x8
  Current transform: 6x8
bvssvni commented 10 years ago
Color:
  RGBA: 4x8