Skip to content

Instantly share code, notes, and snippets.

@sslotsky
Created January 7, 2019 17:23
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 sslotsky/b0173f62793b8341ea3a652675146598 to your computer and use it in GitHub Desktop.
Save sslotsky/b0173f62793b8341ea3a652675146598 to your computer and use it in GitHub Desktop.
let continue = left +. context->measureText(matching)->widthGet;
context->fillStyleSet(matchColor);
context->fillText(matching, left, bottom);
context->fillStyleSet(color);
context->fillText(rest, continue, bottom);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment