How to color BPMN object

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

thanks in advance
Luca

Hi @Luca,

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

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

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

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

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?

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

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