davidfoerster / KaleidOK-examples

KaleidOk invites participants to use a new kind of interactive media tool and take part in an emerging experience which explores speech recognition, media retrieval and visuals generating in a collaborative context (between people, and between people and machines).
http://www.kaleidok.co/
5 stars 0 forks source link

Resize Kaleidoscope layers to canvas size #34

Closed davidfoerster closed 9 years ago

davidfoerster commented 9 years ago

The size of the Kaleidoscope is now a fixed ratio of the length of the shortest canvas edge. For now I maintained the original size ratios compared to the default canvas size of 1000×1000. These can be altered in Kaleidoscope#updateLayerSizes().

Textures aren't resized at all (for now), so they may turn out too small or too large. If this is an issue, please submit an issue report and refer to this pull request.

Overall it would be better and easier to use the transformation matrix stack to scale shapes and textures.