How to add stroke/fill/colour options to svg shape


#1

Hi, I’m new to this and currently trying to figure out how to add stroke fill and colour options to my shape?

this is my code so far


#2

Hello!
Please format your code by hightlighting your code and clicking on the </> button so that we can properly read it.

Just by looking at the title, I would guess you need to use .disableStyle() method on your PShape to be able to use fill(), stroke(), etc. on the shape.


#3

Hi, I’ve formatted the code, thank you ill have a go now


#4

@12345 Good luck on your project. i guess your code went missing when you were editing your post? Feel free to come back if needed and here is a guide that can help you with the problem solving process and asking questions in the future :smile: - Guidelines—Tips on Asking Questions