# VTK.JS Setting CubeSource Edge Width and Color

**URL:** https://discourse.vtk.org/t/vtk-js-setting-cubesource-edge-width-and-color/7187
**Category:** Web
**Created:** [November 16, 2021, 7:35am UTC](https://discourse.vtk.org/t/vtk-js-setting-cubesource-edge-width-and-color/7187 "2021-11-16T07:35:27Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![Donny\_Zimmerman](https://discourse.vtk.org/user_avatar/discourse.vtk.org/donny_zimmerman/32/301_2.png) [@Donny\_Zimmerman](https://discourse.vtk.org/u/Donny_Zimmerman)
#### Post date: [November 16, 2021, 8:02pm UTC](https://discourse.vtk.org/t/vtk-js-setting-cubesource-edge-width-and-color/7187/3 "2021-11-16T20:02:00Z")

</div>

Line width is not defined very well in the webgl spec.

Here is the topic:

> [@\[vtk.js\] LineWidth with vtkLineSource](https://discourse.vtk.org/t/vtk-js-linewidth-with-vtklinesource/4173):
>
> I am currently unable to adjust the line width of an actor with vtkLineSource. Is there something I am missing? Are there perhaps no line cells? (psuedo-ish code) lineSource = vtkLineSource.newInstance(); lineActor = vtkActor.newInstance(); mapper = vtkMapper.newInstance(); lineActor.setMapper(mapper); mapper.setInputConnection(lineSource.getOutputPort()); lineSource.setPoint1(...) lineSource.setPoint2(...) then try to set the line width on the actor p = lineActor.getProperty() p.setLineWid…

---

_[View the full topic](https://discourse.vtk.org/t/vtk-js-setting-cubesource-edge-width-and-color/7187)._
