examples

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 9, 2022 License: BSD-3-Clause Imports: 9 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Colors

func Colors(disp *pix.Display)

func DrawText

func DrawText(disp *pix.Display)

DrawText draws English and Polish text of the Akkerman Steppe poem on the whole screen using two different font faces. The background is white with two random quadrilaterals or triangles with different semi-transparent colors. The text is black. Dejavu is a proportional font with glyph data encoded as 2 bpp image (anti-aliased, 4 transparency levels). VGA is a monospace font with glyph data encoded as 1 bpp image (no anti-aliasing).

Pay attention to the background visibility, font anti-aliasing (display dependent), non-ASCII letters in Polish text.

func GraphicsTest

func GraphicsTest(disp *pix.Display)

func RotateDisplay

func RotateDisplay(disp *pix.Display)

RotateDisplay draws a white arrow pointing to the top left corner of the screen, the red, green and blue bars near top right corner of the screen and a purple rounded rectangle around the screen. Next it sequentially rotates the coordinate system 90 degrees clockwise and draws it all again.

Pay attention to the position of all elements, the order of RGB bars (the red one should be closest to the arrow, the blue one farthest) and the direction of rotation.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL