Interactive Ink

How to set the fill color of recognized shape (diagram)?

I'm trying to set the fill color to clear in a recognized shape (see the rectangle in the diagram below) in iOS. I'm using the following penStyle, however only the stoke is changing, not the fill color.

Any advice on how set the fill color?



        editorViewController.editor.penStyle = "color: #007AFFFF; -myscript-pen-width: 1.0; -myscript-pen-fill-style: none;"


1 Comment

Hi Trevor,

You should be able to achieve what you want by setting a theme on your editor:
editorViewController.editor.theme = ".diagram-fill { -myscript-pen-fill-color: #00000000; }";

For more information, please refer to the styling section of the documentation.

Best regards,



1 person likes this
Login or Signup to post a comment