RenderTargetCommand
Defined in: client/api.d.ts:625
One drawing operation inside a render target. Coordinates are pixels, with the origin at the top-left.
Properties
Section titled “Properties”color?
Section titled “color?”
optionalcolor?:Color
Defined in: client/api.d.ts:669
Tint, text colour, or fill colour; white by default.
filled?
Section titled “filled?”
optionalfilled?:boolean
Defined in: client/api.d.ts:674
Whether a rect or circle is filled; true by default.
fontSize?
Section titled “fontSize?”
optionalfontSize?:number
Defined in: client/api.d.ts:694
Text size in pixels; the UI font size by default.
height?
Section titled “height?”
optionalheight?:number
Defined in: client/api.d.ts:649
Height of a rect or image.
radius?
Section titled “radius?”
optionalradius?:number
Defined in: client/api.d.ts:664
Circle radius.
rounding?
Section titled “rounding?”
optionalrounding?:number
Defined in: client/api.d.ts:684
Corner radius of a rect.
optionaltext?:string
Defined in: client/api.d.ts:689
The string a text command draws.
texture?
Section titled “texture?”
optionaltexture?:bigint|RenderTargetSurface
Defined in: client/api.d.ts:699
What an image command samples: a Texture.load result or another render target.
thickness?
Section titled “thickness?”
optionalthickness?:number
Defined in: client/api.d.ts:679
Outline width for an unfilled rect, a circle, or a line.
type:
"text"|"rect"|"image"|"line"|"circle"
Defined in: client/api.d.ts:629
Which primitive to draw.
optionalu0?:number
Defined in: client/api.d.ts:709
Left texture coordinate of an image; 0 by default.
optionalu1?:number
Defined in: client/api.d.ts:719
Right texture coordinate of an image; 1 by default.
optionalv0?:number
Defined in: client/api.d.ts:714
Top texture coordinate of an image; 0 by default.
optionalv1?:number
Defined in: client/api.d.ts:724
Bottom texture coordinate of an image; 1 by default.
webView?
Section titled “webView?”
optionalwebView?:number
Defined in: client/api.d.ts:704
A Web.createView id for an image command to sample, so a page draws into the target. Takes precedence over texture. Call Web.setViewOffscreen(id) first, or a hidden view stops painting.
width?
Section titled “width?”
optionalwidth?:number
Defined in: client/api.d.ts:644
Width of a rect or image.
optionalx?:number
Defined in: client/api.d.ts:634
Left edge, the first point of a line, or the centre of a circle.
optionalx2?:number
Defined in: client/api.d.ts:654
Second point of a line.
optionaly?:number
Defined in: client/api.d.ts:639
Top edge, the first point of a line, or the centre of a circle.
optionaly2?:number
Defined in: client/api.d.ts:659
Second point of a line.
