Canvas
Up and coming: shot check knows this class and its members today, and programs run it once the native runtime lands.
Up and coming
Draw your own graphs and sparklines: lines, rectangles, circles and text in a box, swapped in with a crossfade.
Coordinates are the box's own pixels, from 0 to its AbsoluteSize. Each drawing call adds to a list, and Commit sends it in one go: the new drawing replaces the old one, crossfaded over the box's Transition, and stays until the next Commit. For a graph this is the right tool, where hundreds of Frames would not be.
Made with Instance.new("Canvas") or Clone().
Methods
| Name | Arguments | Returns | Description |
|---|---|---|---|
| Clear | () | () | |
| Line | (points: { Vector2 }, thickness: number, color: Color3, transparency: number?) | () | Adds a line through the points, in the box's own pixels; it shows at the next Commit. |
| Rect | (position: Vector2, size: Vector2, color: Color3, corner: number?) | () | Adds a rectangle, in the box's own pixels; it shows at the next Commit. |
| Circle | (center: Vector2, radius: number, color: Color3) | () | Adds a circle, in the box's own pixels; it shows at the next Commit. |
| Text | (text: string, position: Vector2, size: number, color: Color3) | () | Adds text, in the box's own pixels; it shows at the next Commit. |
| Commit | () | () | Sends the drawing in one go; it replaces the old one, crossfaded over the Transition. |
From UIObject 19
From ScreenItem 2
From ShotInstance 33
ClassNameNameParentAncestryChangedAttributeChangedChangedChildAddedChildRemovedDestroyingAddTagClearAllChildrenCloneDestroyFindFirstAncestorFindFirstAncestorOfClassFindFirstAncestorWhichIsAFindFirstChildFindFirstChildOfClassFindFirstChildWhichIsAGetAttributeGetAttributeChangedSignalGetAttributesGetChildrenGetDescendantsGetFullNameGetPropertyChangedSignalGetTagsHasTagIsAIsAncestorOfIsDescendantOfRemoveTagSetAttribute
