module Shale::TestDrawing

Extended Modules

Defined in:

shale/test_drawing.cr

Instance Method Summary

Instance Method Detail

def test_seizure(target : Shale::Surface) #

Test single colour changes.

Description

WARNING Using this will flicker the screen very rapidly with different colours.


[View source]
def test_static_colour(target : Shale::Surface) #

Test random static on colour channels.

Description

Each colour channel is randomized and drawn to the frame. With the --debug enabled, it will be rather slow, but building with --release tends to show significant speedup.


[View source]
def test_true_colour(target : Shale::Surface) #

Test mapping pixels to the frame.

Description

4 quadrants are created with different colour patterns. Top left will be randomized colours for each pixel, and the other 3 areas will have gradients based on the xy coordinates.


[View source]