mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-29 17:54:36 +01:00
A page item's blendingMode gives the object's own blend mode as a BlendModes value, and assigning one sets it through object.setProps. The global BlendModes holds the 16 members the scripting constants page lists; COLORBLEND and SATURATIONBLEND set the Color and Saturation modes. Any other value throws "blendingMode needs a BlendModes value" and changes nothing. Assigning the mode the object has adds no undo step. An object in a hidden or locked layer refuses the change with "Cannot edit", as opacity does.