A View is the base abstraction for images. Port of ae.utils.graphics.
Returns the color type of the specified view. By convention, colors are structs with numeric fields named after the channel they indicate.
Blits a view onto another. The views must have the same size.
Helper function to blit an image onto another at a specified location.
Crop a view to the specified rectangle.
Return a 1x1 view of the specified color. Useful for testing.
Default implementation for the .size method. Asserts that the view has the desired size.
Returns a view of the specified dimensions and same solid color.
Mixin which implements view primitives on top of existing direct view primitives.
Mixin which implements view primitives on top of another view, using a coordinate transform function.
Returns a view which calculates pixels on-demand using the specified formula.
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
Vladimir Panteleev <email@example.com> Guillaume Piolat <firstname.lastname@example.org>