ae.utils.graphics.draw

Drawing functions.

Members

Aliases

clear
deprecated alias clear = fill
Undocumented in source.

Functions

aaFillRect
void aaFillRect(V v, F x1, F y1, F x2, F y2, COLOR color)
Undocumented in source. Be warned that the author may not have intended to support it.
aaLine
void aaLine(V v, float x1, float y1, float x2, float y2, COLOR color)
Undocumented in source. Be warned that the author may not have intended to support it.
aaLine
void aaLine(V v, float x1, float y1, float x2, float y2, COLOR color, frac alpha)
Undocumented in source. Be warned that the author may not have intended to support it.
aaPutPixel
void aaPutPixel(V v, F x, F y, COLOR color)
Undocumented in source. Be warned that the author may not have intended to support it.
draw
typeof(this) draw(int x, int y, SRCCANVAS v)

Draws an image. Returns this.

fill
void fill(V v, COLOR c)

Fills a writable view with a solid color.

fillCircle
void fillCircle(V v, int x, int y, int r, COLOR c)
Undocumented in source. Be warned that the author may not have intended to support it.
fillPoly
void fillPoly(V v, Coord[] coords, COLOR f)
Undocumented in source. Be warned that the author may not have intended to support it.
fillRect
void fillRect(V v, int x1, int y1, int x2, int y2, COLOR b)
Undocumented in source. Be warned that the author may not have intended to support it.
fillRect
void fillRect(V v, int x1, int y1, int x2, int y2, COLOR c, COLOR b)
Undocumented in source. Be warned that the author may not have intended to support it.
fillSector
void fillSector(V v, int x, int y, int r0, int r1, real a0, real a1, COLOR c)
Undocumented in source. Be warned that the author may not have intended to support it.
hline
void hline(V v, int x1, int x2, int y, COLOR c)
Undocumented in source. Be warned that the author may not have intended to support it.
hline
void hline(V v, int x1, int x2, int y, COLOR color, frac alpha)
Undocumented in source. Be warned that the author may not have intended to support it.
line
void line(V v, int x1, int y1, int x2, int y2, COLOR c)
Undocumented in source. Be warned that the author may not have intended to support it.
pixelPtr
ViewColor!V* pixelPtr(V v, int x, int y)

Gets a pixel's address from a direct view.

putPixel
void putPixel(V v, int x, int y, COLOR value)

Forwards to safePut or opIndex, depending on the CHECKED parameter. Allows propagation of a CHECKED parameter from other callers.

rect
void rect(V v, int x1, int y1, int x2, int y2, COLOR c)

Draws a rectangle with a solid line. The coordinates represent bounds (open on the right) for the outside of the rectangle.

safeGet
COLOR safeGet(V v, int x, int y, COLOR def)

Get the pixel color at the specified coordinates, or fall back to the specified default value if the coordinates are out of bounds.

safePut
void safePut(V v, int x, int y, COLOR value)

Set the pixel color at the specified coordinates if the coordinates are not out of bounds.

softCircle
void softCircle(V v, T x, T y, T r1, T r2, COLOR color)
Undocumented in source. Be warned that the author may not have intended to support it.
softRing
void softRing(V v, T x, T y, T r0, T r1, T r2, COLOR color)
Undocumented in source. Be warned that the author may not have intended to support it.
subpixelDownscale
void subpixelDownscale()
Undocumented in source. Be warned that the author may not have intended to support it.
thickLine
void thickLine(V v, int x1, int y1, int x2, int y2, int r, COLOR c)
Undocumented in source. Be warned that the author may not have intended to support it.
thickLinePoly
void thickLinePoly(V v, Coord[] coords, int r, COLOR c)
Undocumented in source. Be warned that the author may not have intended to support it.
uncheckedFloodFill
void uncheckedFloodFill(V v, int x, int y, COLOR c)

Unchecked! Make sure area is bounded.

vline
void vline(V v, int x, int y1, int y2, COLOR c)
Undocumented in source. Be warned that the author may not have intended to support it.
vline
void vline(V v, int x, int y1, int y2, COLOR color, frac alpha)
Undocumented in source. Be warned that the author may not have intended to support it.
whiteNoise
void whiteNoise(V v)
Undocumented in source. Be warned that the author may not have intended to support it.

Manifest constants

CheckHLine
enum CheckHLine;
Undocumented in source.
CheckVLine
enum CheckVLine;
Undocumented in source.

Mixin templates

FixMath
mixintemplate FixMath(ubyte coordinateBitsParam = 16)
Undocumented in source.

Structs

Coord
struct Coord
Undocumented in source.

Templates

aaPutPixel
template aaPutPixel(bool CHECKED = true, bool USE_ALPHA = true)
Undocumented in source.

Meta

License

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.

Authors

Vladimir Panteleev <vladimir@thecybershadow.net>