gewel.draw

This module contains classes and functions for drawing.

Getting Started With gewel is an introduction to gewel that is useful if you are just getting started.

Sample Code contains numerous examples of the use of classes from this module to create simple animations.

Functions

all_wait_for

Have a group of Drawable objects wait on a single Drawable.

reset_total_device_drawing_time

Reset the total device rendering time.

sync

Ensure that two or more Drawable objects are in sync, meaning that all of them will wait for whichever has the latest completing action before any takes a next action.

total_device_drawing_time

Get the total time spent in rendering at the low level.

walk_text

A subroutine for chopping strings into lines to be rendered.

Classes

AlphaDrawableProtocol

A protocol for drawables that support alpha.

Background

A background drawable.

BaseScene

A base class for Scene, SceneSequence, and ClipDrawable that provides a little bit of shared base functionality.

BezierDrawable

A Bezier curve parameterized by four points.

BoundedDrawableProtocol

A protocol for drawables that have a location, width, height, and angle of rotation.

BoundedMixin

A mixin that provides common BoundedDrawableProtocol functionality.

Box

A rectangular axis-aligned box.

ClipDrawable

A scene that is a clip of another scene.

ClippedDrawable

A drawable that is a clipped version of another drawable.

ColorMapBox

Drawable

This is the abstract base class for all drawables.

Frame

A single frame in a scene.

MarkerBase

The abstract base class for various marker classes, such as MarkerX, MarkerPlus and so on.

MarkerDot

A marker that is the shape of a filled circle.

MarkerO

A marker that is the shape of circle.

MarkerPlus

A marker that has the shape of a plus sign (+).

MarkerUpArrow

A marker that has the shape of an upward-pointing arrow.

MarkerX

A marker that is the shape of an X.

PathDrawable

A class of drawable that renders a piecewise linear path.

PngDrawable

A Drawable that renders a the contents of a png file.

QuadraticCurveDrawable

A quadratic curve parameterized by three points.

RotatedDrawable

A drawable that is a rotated version of another.

Scene

A scene is a collection of Drawable objects.

SceneSequence

Teleprompter

A class that animates scrolling text inside a rectangular box.

TextBox

A box containing text.

TextJustification

An enumeration for specifying how to justify text.

TextVerticalPosition

An enumeration for specifying the vertical position of text.

TimeClock

A drawable that shows the current time.

TimeWindowDrawable

A wrapper class that makes a drawable visible only in a certain time range.

ToyTextDrawable

A very simple and all but deprecated text box that should be replaced by TextBox in almost all cases.

TransformedDrawable

A drawable that is a transformed version of another.

TranslatedDrawable

A drawable that is a shifted version of another.

VectorDrawable

The abstract base class for various Drawable classes that are rendered using lines and/or curves, but not, for example, bitmaps.

XYDrawable

An abstract base class for Drawable objects that that have a specific location specified by a point (x, y) and a rotation specified by an angle theta.