graphics.canvas · function ·
DrawLineRgba
A solid stroke between two points with the given whole-pixel thickness.
Draw 2D shapes, text, images, and composited interface content.
external DrawLineRgba(int startX, int startY, int endX, int endY, int thickness, int red, int green, int blue, int alpha)Status: source-declared
Parameters
int startX- Supply start x as int.
int startY- Supply start y as int.
int endX- Supply end x as int.
int endY- Supply end y as int.
int thickness- Supply thickness as int.
int red- Supply red as int.
int green- Supply green as int.
int blue- Supply blue as int.
int alpha- Supply alpha as int.
Use DrawLineRgba
A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.
cpu · source-example · type checked
using graphics.canvas
// Draw 2D shapes, text, images, and composited interface content.
int startX = 1
int startY = 1
int endX = 1
int endY = 1
int thickness = 1
int red = 1
int green = 1
int blue = 1
int alpha = 1
DrawLineRgba(startX, startY, endX, endY, thickness, red, green, blue, alpha)
Console.Log("DrawLineRgba completed")
project.mech
manifestVersion = "2"
package = "api.example.graphics_canvas__drawlinergba"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"
[app]
kind = "headless"
[[dependencies]]
package = "graphics.canvas"
version = "0.1.0"
path = "../../../yeho/packages/graphics/canvas"
Notes and source
Package presence and a declaration do not establish support on every host. Host services need their platform and lifecycle setup.
yeho/packages/graphics/canvas/canvas.yh:57