helper/web_helper library

Functions

beginPath(dynamic context2D) → void
Begin a new path.
drawContext2DArc(dynamic context2D, double x, double y, double radius, double startAngle, double endAngle, bool counterclockwise) → void
Add an arc (circle segment) to the current path and move to its start.
drawContext2DLine(dynamic context2D, double x, double y, double x1, double y1) → void
Add a straight line segment to the current path.
fill(dynamic context2D) → void
Fill the current path.
fillRect(dynamic context2D, Size size) → void
Fill a rectangle from (0,0) to size.width x size.height.
fillStyle(dynamic context2D, String fillColor) → void
Set the fill style using an 'r,g,b,a' string (converted to 'rgba(...)').
lineCap(dynamic context2D, String lineCap) → void
Set the line cap style: 'butt', 'round', or 'square'.
lineWidth(dynamic context2D, double lineWidth) → void
Set the current stroke width in pixels.
stroke(dynamic context2D) → void
Stroke the current path.
strokeStyle(dynamic context2D, String strokeColor) → void
Set the stroke style using an 'r,g,b,a' string (converted to 'rgba(...)').