Ellipse
The ellipse draws a circle or an oval at the element’s size: an indicator, a vessel head or lid, a measuring point marker. Fill and outline work like the rectangle’s: solid, gradient or transparent fill, solid or dashed outline.
For a round on/off indicator with a label, the lamp is handier: it already has state colors, flashing and text.
Properties
Section titled “Properties”Besides the properties of every element — name, position, size, tooltip, rotation, transparency and the operate right:
| Property | Values | Default | Description |
|---|---|---|---|
Fill |
#RRGGBB |
#9AA3AB |
Fill |
Stroke |
#RRGGBB |
#5C646C |
Outline |
StrokeThickness |
number | 1 |
Outline thickness |
FillStyle |
Solid, VerticalGradient, HorizontalGradient, Transparent |
Solid |
Fill style |
Fill2 |
#RRGGBB |
Second gradient color. Empty — lighter than the main color | |
DashStyle |
Solid, Dash, Dot, DashDot |
Solid |
Outline style |
From scripts
Section titled “From scripts”Item.Type = Ellipse. Any property is read and changed by name: Item.Fill = "#D32F2F". The common element members (Visible, Enabled, Value, Raise, Apply…) are described in Elements from scripts.
Events
Section titled “Events”Mouse, hover, focus and keyboard — as for any element (see Events and functions).
Examples
Section titled “Examples”A measuring point marker that fades without communication.
var mark = Screen.Items("Mark_TT101");mark.Transparency = Tags("TT101").Quality === "Good" ? 0 : 60;A circle that grows with pressure (a visual “bubble” on an overview screen).
var p = Tags("Net.Pressure").Value || 0;var size = 20 + Math.min(p, 10) * 6;Screen.Items("Bubble").Resize(size, size);