Skip to main content
CESDK/CE.SDK/Engine/API Reference/Block

Fill Types

Get to know all available fill types and their properties

The following tables document the currently available fills and their properties.

Fills#

fill/color#

Information about a color to be used to fill the contents of an element.

MemberTypeDefaultDescription
Member
value
Type
Color
Default
createRGBColor(0., 0., 0., 1.0)
Description
The fill color, defaults to black.

fill/gradient/conical#

Information about a color to be used to fill the contents of an element.

MemberTypeDefaultDescription
Member
centerPointX
Type
float
Default
0.0
Description
The center x of the gradient in relative coordinates of the design block frame.
Member
centerPointY
Type
float
Default
0.0
Description
The center y of the gradient in relative coordinates of the design block frame.

fill/gradient/linear#

Information about a color to be used to fill the contents of an element.

MemberTypeDefaultDescription
Member
endPointX
Type
float
Default
0.5
Description
The x component of the end position of the gradient in relative coordinates of the design block frame.
Member
endPointY
Type
float
Default
1.0
Description
The x component of the end position of the gradient in relative coordinates of the design block frame.
Member
startPointX
Type
float
Default
0.5
Description
The x component of the start position of the gradient in relative coordinates of the design block frame.
Member
startPointY
Type
float
Default
0.0
Description
The y component of the start position of the gradient in relative coordinates of the design block frame.

fill/gradient/radial#

Information about a color to be used to fill the contents of an element.

MemberTypeDefaultDescription
Member
centerPointX
Type
float
Default
0.0
Description
The center x of the gradient in relative coordinates of the design block frame.
Member
centerPointY
Type
float
Default
0.0
Description
The center y of the gradient in relative coordinates of the design block frame.
Member
radius
Type
float
Default
1.0
Description
The radius of the gradient relative to the smaller side of the design block frame.

fill/image#

Information about a color to be used to fill the contents of an element.

MemberTypeDefaultDescription
Member
externalReference
Type
string
Default
""
Description
A string that may be used to determine where the URI used in imageFileURI originates from. NOT used by the block.
Member
imageFileURI
Type
string
Default
""
Description
A URI referencing an image file.
Member
previewFileURI
Type
string
Default
""
Description
A URI pointing to an image file, that's used while the resource for imageFileURI is still loading.
Member
sourceSet
Type
Source(string uri, uint width, uint height)
Default
{}
Description
Source set for responsive images.

fill/pixelStream#

MemberTypeDefaultDescription
Member
orientation
Type
uint enum : {'Up', 'Down', 'Left', 'Right', 'UpMirrored', 'DownMirrored', 'LeftMirrored', 'RightMirrored'}
Default
Up
Description
The orientation to apply to the image.

fill/video#

MemberTypeDefaultDescription
Member
fileURI
Type
string
Default
""
Description
A URI referencing a video file.