mac-comp127 / kilt-graphics

Graphics and UI library for learning software development principles in Java
https://mac-comp127.github.io/kilt-graphics/
2 stars 17 forks source link

GraphicsObject rotate and scale #16

Closed pcantrell closed 3 years ago

pcantrell commented 3 years ago

Problem

GraphicsObject currently only supports translation. This limits the kinds of games and animations students can create.

Desired solution

It would be nice if GraphicsObject — or at least GraphicsGroup — supported rotation and scaling. This would happen as a Graphics2D transform in the draw() methods, and as a point transform in the hit testing methods.

See also #3.

pcantrell commented 3 years ago

Fixed in #17