Module pix_engine::prelude

source ·
Expand description

Exports most commonly used types, traits, and functions.

Re-exports

Macros

  • Constructs a circle Ellipse at position (x, y) with radius.
  • Constructs a Color with red, green, blue and optional alpha.
  • Constructs an Ellipse at position (x, y) with width and height.
  • Constructs a Color with hue, saturation, brightness and optional alpha.
  • Constructs a Color with hue, saturation, lightness and optional alpha.
  • Constructs a Line with two points.
  • Returns the Perlin noise value at specified coordinates.
  • Constructs a Point with N coordinates.
  • Constructs a Quad with four points.
  • Returns a random number within a range.
  • Constructs a Rect at position (x, y) with width and height.
  • Constructs a Color with red, green, blue and optional alpha.
  • Constructs a Sphere at position (x, y, z) with radius.
  • Constructs a square Rect at position (x, y) with the same width and height.
  • Constructs a Triangle with three points.
  • Constructs a Vector.

Traits

  • A phantom type for retrieving the SDL_AudioFormat of a given generic type. All format types are returned as native-endian.