Skip to main content
100%

Change Sketch Measurement Color

✓ Published0🌍 Public
KKevinGutowski
Last edited Feb 1, 2019
Created on Feb 1, 2019

This example shows a Sketch plugin that programmatically reads the current measurement color from the active document and prints its RGBA values to the console. The code uses the `sketch` library to access the selection, then the `eventHandlerManager`, `normalHandler`, and `measurementRenderer` APIs to retrieve the color as an `NSColorSpaceColor` object. The resulting output confirms a solid red fill. No data source is involved; it demonstrates direct inspection of a Sketch interface element's style.

AI-generated description

Similar vizzes