The colour value is the decimal equivalent of the RGB value. What I do is take the hex value from any online hex colour picker (I like this one https://htmlcolorcodes.com/color-picker/) and convert it to decimal with hex2dec in MATLAB.
For example, if you want a bright red, the hex value is #FF0000
red = hex2dec('FF0000');
then the vcode for a circle with fill colour red that is 1 cm radius is
circle_vcode = [1 1 x y red 0 0 0 100 0.01 zeros(1,60)];
Please login or Register to submit your answer