juliankrispel / Pollock

A canvas-based application which paints by itself.
2 stars 1 forks source link

Refactoring Session: Sophisticated Image Handling #32

Open ulikk opened 10 years ago

ulikk commented 10 years ago

PROBLEM: We want to maintain a dynamic set of input images for the painter, and these images can be arbitrarily sized. It should be possible to compose them in arbitrary position.

ulikk commented 10 years ago

My Proposal:

The question is, how to we abstract this, and who holds which information.

ulikk commented 10 years ago

Proposal2:

transformed = ImageTransform.transform( image, matrix, width, height )
move( x, y )
scale( x, y, sx, sx )
rotate( x, y, angle )