module Drawable

Direct including types

Defined in:

drawable.cr

Class Method Summary

Instance Method Summary

Class Method Detail

def self.resize_bilinear(source : Drawable, dest : Drawable) #

[View source]
def self.resize_nearest_neighbor(source : Drawable, dest : Drawable) #

[View source]

Instance Method Detail

abstract def color(x, y) : Enumerable #

[View source]
def fill(&) #

Iterate over each x, y coordinate and set the pixel value.


[View source]
abstract def height #

[View source]
abstract def set_color(x, y, color : Enumerable) #

[View source]
abstract def width #

To be implemented by the including class


[View source]