# How to increase line width?

**URL:** <https://forum.inductiveautomation.com/t/how-to-increase-line-width/70807>\
**Category:** Ignition\
**Tags:** vision, ignition81\
**Created:** [March 9, 2023, 3:08am UTC](https://forum.inductiveautomation.com/t/how-to-increase-line-width/70807 "2023-03-09T03:08:50Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![justinedwards.jle](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/justinedwards.jle/32/37854_2.png) [@justinedwards.jle](https://forum.inductiveautomation.com/u/justinedwards.jle)\
**Post date:** [March 9, 2023, 6:20am UTC](https://forum.inductiveautomation.com/t/how-to-increase-line-width/70807/2 "2023-03-09T06:20:59Z")

</div>

[No problem](https://forum.inductiveautomation.com/t/add-script-to-dynamically-created-objects/64215/15). Here is a script that draws a red square with a blue border:

```auto
from java.awt import Color, BasicStroke #Add BasicStroke Here
from java.awt.geom import Rectangle2D
x = 20
y = 20
width = 100
height = 100
rectangle = Rectangle2D.Float( x, y, width, height)
g = event.graphics

#Border Script
g.setColor(Color.BLUE)
stroke = BasicStroke(10) #Set Width of border here
g.setStroke(stroke)
g.draw(rectangle) #Draw Border Here

g.setColor(Color.RED)
g.fill(rectangle)

```

Here is the result:  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/c/0/c0544f3079a7fece0b351def61187fe55df4510f.png)

---

_[View the full topic](https://forum.inductiveautomation.com/t/how-to-increase-line-width/70807)._
