render: color: Use f32vector under the hood.
authorDavid Thompson <dthompson2@worcester.edu>
Mon, 7 Jan 2019 03:48:14 +0000 (22:48 -0500)
committerDavid Thompson <dthompson2@worcester.edu>
Mon, 7 Jan 2019 03:48:14 +0000 (22:48 -0500)
commite6f37f4d005229264ee25e4424553776d8e0f0d8
treed729462cf3bf0c2d5761f095f8bd6c3862754f75
parentc93716843828ccff80831294008a8456d9cadc4f
render: color: Use f32vector under the hood.

* chickadee/render/color.scm (<color>): Use a single field for storing
bytevector.
(make-color): Wrap f32vector.
(color-r, color-g, color-b, color-a): Fetch channel values from
f32vector.
(color): New procedure.
chickadee/render/color.scm