How to color BPMN object


#1

Hi, how can i add color palette tools in BPMN (not Camunda) to colour the objects?

thanks in advance
Luca


#2

Hi @Luca,

this extension should fit your needs: bpmn-js-in-color


#3

Even better: Just use the built-in API for colors.

const modeling = bpmnModeler.get('modeling');

modeling.setColor(myElement, {
  fill: 'red',
  stroke: 'green'
});

#4

Thanks,
but this is for color elements with a specified fixed color or to make the user to choose color to use?
And how i can made a palette to select color and element of bpmn diagram?


#5

That’s out of the scope of our toolkit. You can roll your own color picker and hook it up to the modeling API.


closed #6

This topic was automatically closed after 42 hours. New replies are no longer allowed.