angles are typically stored as radians not degrees (if you have an example of not, please say!)LeviFiction wrote: ↑Wed Jun 22, 2022 7:07 am Thank you again. I've grabbed examples of every style by making a change, saving the mohoproj file, and searching for the styles. I'm still so new to Lua's tables to make up for the lack of classes (not a fan but I'll get over it xD) but I think I've got a decent one set up to help me create accurate json for all style values and combinations. Right now just making sure I've accounted for all mins and maxs (mostly 0-256, or 359 for angles), that the calculations are done right (several are percentages of a weird constant 0.20576153), and legacy colors use 0-255 while new color values are 0-1. Also considering making it understand M_Style tables for quick importing and editing. No idea what I'm going to do with this, xD But I'm committed to see if I can make it work.
I don't recognise the constant 0.20576153 -- this **might** be something to do with whatever shape / render resolution you're using.. if you want to post / upload (or PM if you feel the info is sensitive) I'll have a poke at it. Notwithstanding, this might help: http://www.lostmarble.com/forum/viewtop ... 33#p204633
There are two Moho colour classes in current use - RGB (0-255) and Vector (0-1) Both are current -- so pedantically RGB is not "legacy"
And finally, just in case: a heads-up: there are document-wide styles; and there are styles "private" to a shape .. they both use M_Style but are stored in different parts of the .mohoproj
Really interested to see how this progresses!