Offset Bar Gauge
Previous Topic  Next Topic 



This is an example of a bar gauge with the offset needle option.  The red ellipse is the needle object that marks the value horizontally along the gauge.


The two rectangles make up the three-dimensional green frame. 


OBJECT

PROPERTIES

Rectangle

  • Size=40; 20
  • Pen=Transparent
  • Brush Color=(0,128,0)
  • Brush Style=Gradient
  • Gradient Style=Radial
  • Gradient points=(pick first point horizontally centered and at the top of the rectangle; pick first point horizontally centered and above the rectangle)
  • Gradient Radius 1=1
  • Gradient Radius 2=40
  • Gradient Color Stops=

   [100, (0, 0, 0,), 255]

Rectangle

  • Size=38; 17
  • Pen Color=(0,43,0)
  • Brush Color=(0,0,0)

Tick Marks

  • Type=Straight
  • Tick Count=9
  • Start and end points (under straight ticks)=(pick start point vertically centered at left side of inner rectangle and end point vertically centered at right side of inner rectangle)
  • Length (under straight ticks)=3
  • Label position (under straight ticks)=5

Line

  • Pen Width=0.1
  • Pen Color=(0,255,0)
  • Brush Color=(0,0,0)

Text

  • Brush Color=(0,255,0)

Needle

  • Type=Linear
  • Type (under Linear Needle)=Offset
  • Start and end points=(pick start point at left side of inner rectangle and end point at right side of inner rectangle)

Ellipse

  • Center Point= (Same as start point for needle)
  • Horizontal Radius=2
  • Vertical Radius=2
  • Pen=Transparent
  • Brush Color=(255,0,0)
  • Brush Style=Gradient
  • Gradient Style=Linear
  • Gradient Points=(Point 1 horizontally centered above the ellipse and Point 2 horizontally centered below the ellipse)
  • Gradient Color Stops=

   [100, (0, 0, 0), 128]