# Dynamic dash offset properties of line stroke in script

**URL:** <https://forum.inductiveautomation.com/t/dynamic-dash-offset-properties-of-line-stroke-in-script/20516>\
**Category:** Ignition\
**Created:** [November 3, 2018, 2:17pm UTC](https://forum.inductiveautomation.com/t/dynamic-dash-offset-properties-of-line-stroke-in-script/20516 "2018-11-03T14:17:55Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [November 5, 2018, 12:53pm UTC](https://forum.inductiveautomation.com/t/dynamic-dash-offset-properties-of-line-stroke-in-script/20516/2 "2018-11-05T12:53:11Z")

</div>

This should point you in the right direction. 🙂

> [@How to Bind Line Width (a part of Stroke Style)?](http://forum.inductiveautomation.com/t/how-to-bind-line-width-a-part-of-stroke-style/10194/2):
>
> Hi! The Stroke Style is a java.awt.BasicStroke construct. From the [docs.java.com](http://docs.oracle.com/javase/7/docs/api/java/awt/BasicStroke.html#createStrokedShape%28java.awt.Shape%29): [This website](http://docstore.mik.ua/orelly/java-ent/jfc/ch04_05.htm) has a pretty fair explanation of the different style options. I made up a window that illustrates all five methods. That way, you can decide case-by-case what will work best for you. slight_smile[Stroke Styles Demo\_2018-11-05\_0746.proj](https://us1.discourse-cdn.com/inductiveautomation/original/2X/8/895f3d53fe92ade1576c0f686ed3f22ea5af77f7.proj) (16.3 KB) Project scripts for construction or inspection. Described in posts below. [stroke\_2017-08-01\_0533.proj](https://us1.discourse-cdn.com/inductiveautomation/original/2X/7/72bf07d771e17779f42c4cfcc1564941de56bb1d.proj) (1.9 KB) EDIT: File re-uploaded… again…

---

_[View the full topic](https://forum.inductiveautomation.com/t/dynamic-dash-offset-properties-of-line-stroke-in-script/20516)._
