0

Is it possible to add color information into checkbox folder? Like on the picture.

I know there exists color controller, but I just need checkbox with information about color, which it represents (TCP is red, UDP is purple,...). I tried to google it, but unsuccessfully.

dat gui folders

Haniku
  • 671
  • 1
  • 7
  • 16

1 Answers1

0

You can modify the DOM elements for each gui option however you want.

var checkbox = gui.add( obj, ‘showTCP’ )
checkbox.domElement.classList.add(‘blue’)
Ben West
  • 4,398
  • 1
  • 16
  • 16