Skip to content

Instantly share code, notes, and snippets.

@psql
Created April 2, 2018 18:49
Show Gist options
  • Select an option

  • Save psql/bdad560062adea8bb78949a41f9f575b to your computer and use it in GitHub Desktop.

Select an option

Save psql/bdad560062adea8bb78949a41f9f575b to your computer and use it in GitHub Desktop.
maintain stroke width
From Adam Plouff on Twitter:
Maintain stroke width. Works for scale and infinite parenting. Apply to Stroke Width property:
value / length(toComp([0,0]), toComp([0.7071,0.7071])) || 0.001;
So useful!!!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment