Skip to content

Instantly share code, notes, and snippets.

@thejohnfreeman
Created March 26, 2012 23:09
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 thejohnfreeman/2210474 to your computer and use it in GitHub Desktop.
Save thejohnfreeman/2210474 to your computer and use it in GitHub Desktop.
Color mangling in Diagramly
1. Create rectangle.
2. Set custom fill color to "4af" (light blue)
3. Create another rectangle.
4. Resize it to be smaller than the first (it will sit in a corner).
5. Set custom fill color on the new rectangle to "f66" (light red)
6. Export as PNG
The generated image will have the two rectangles in the correct dimensions.
The larger rectangle will have a blue that looks darker, more saturated than what I saw in the browser, but that's fine.
The smaller rectangle will have an even darker blue than the larger rectangle, when it should be red. Same thing happens when exporting as JPG. I used Chrome 17 on both Windows 7 and Mac OS X 10.6.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment