ektemple / glimmr-i7x

Automatically exported from code.google.com/p/glimmr-i7x
4 stars 1 forks source link

Glimmr Canvas Editor: Add ability to resize primitives using the Scale GUI #9

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The Scale GUI interface currently changes the scaling factor of image-based 
elements, and does nothing with primitive elements, since the scaling factor 
does not affect their size (the size of primitives is controlled by the 
endpoint coordinate). It would be a lot more convenient, though, if we could 
resize primitives. This could be done by simply changing the endpoint rather 
than calculating and applying a new scaling factor.

Potentially something similar could be done with a typed command, e.g.:

CHANGE ENDPOINT TO (120, 20)

The difficulty here is that Inform can't understand two values (the numbers in 
the coordinate). This could potentially be hacked around by defining a new kind 
of value whose expression would be two numbers.

Original issue reported on code.google.com by Ek.Temple@gmail.com on 7 Aug 2010 at 2:09