Skip to content

CleanCapsule

Juju Adams edited this page Mar 17, 2021 · 11 revisions

 

CleanCapsule(left, top, right, bottom, include)

Returns: Rectangle struct

Name Datatype Purpose
left number x-coordinate of the top-left corner
top number y-coordinate of the top-left corner
right number x-coordinate of the bottom-right corner
bottom number y-coordinate of the bottom-right corner
include boolean Set to true to place the rounded edge of the capsule within the given bounding box. Set to false to place the rounded edge outside the bounding box

Capsules are implemented as a wrapper for Clean Shapes' rectangle shape. Please see the CleanRectangle() documentation for methods available to capsules

N.B. A shape will only draw when you call the .Draw() method.