Skip to content

Instantly share code, notes, and snippets.

@bomberstudios
Created June 22, 2015 12:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bomberstudios/5cf5c8ce2d87dc249caa to your computer and use it in GitHub Desktop.
Save bomberstudios/5cf5c8ce2d87dc249caa to your computer and use it in GitHub Desktop.
// Enable background for slice:
slice.setHasBackgroundColor(1)
// Set background color
var color = [MSColor colorWithRed:0.5 green:0.5 blue:0.5 alpha:1]
slice.setBackgroundColor(color)
// Update inspector
context.document.reloadInspector()
@phaistonian
Copy link

Awesome :)

Thank you Ale!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment