Module prelude

Source

Re-exports§

pub use crate::CustomLetter;
pub use crate::Graphics;
pub use crate::GraphicsError;
pub use crate::clipping::*;
pub use crate::drawable::*;
pub use crate::drawing::*;
pub use crate::image::*;
pub use crate::indexed::*;
pub use crate::integration::*;
pub use crate::shapes::collection::*;
pub use crate::shapes::polyline::*;
pub use crate::shapes::*;
pub use crate::text::format::*;
pub use crate::text::pos::*;
pub use crate::text::wrapping::*;
pub use crate::text::*;

Modules§

animated
changing
color
conversion
coord
errors
file
image
jasc_palette
palette
scaling
wrapper

Macros§

coord
Create a Coord Accepts

Structs§

AnimatedIndexedImage
Series of images to play as an animation
Circle
Color
This represents an RGBA color
Coord
Represents a 2D point
Ellipse
IndexedImage
JascPalette
Line
Polygon
Shape with any number of points/line
Rect
Rectangle
Triangle

Enums§

AnglePosition
FilePalette
How palette data is stored in an ICI file
FlatSide
IndexedImageError
IndexedWrapper
Store static or animated images in a generic way
LineType
PaletteError
ParseIssue
PlayType
Scaling
TriangleAngleType
TriangleSideType

Constants§

BLACK
BLUE
BROWN
CYAN
DARKER_GRAY
DARK_GRAY
GB_0
Gameboy DMG-01 Background/Lightest
GB_1
GB_2
GB_3
Gameboy DMG-01 Foreground/Darkest
GREEN
LIGHTER_GRAY
LIGHT_GRAY
MAGENTA
MID_GRAY
OFF_BLACK
OFF_WHITE
ORANGE
PURPLE
RED
TRANSPARENT
WHITE
YELLOW

Traits§

ChangeColors
ColorConversion
Converts to/from RGBA and ARGB
ContainsShape
A shape counts as contained if it is fully inside
IntersectsContains
IntersectsShape
Lerp
OpaqueColorConversion
Converts to/from RGB
Shape
Tint

Functions§

flerp
This method has to be separate and named differently because f32::lerp already exists but is unstable
inv_flerp
calculate the percent for point between self and end