Skip to content

Instantly share code, notes, and snippets.

@madhavanmalolan
Created November 28, 2021 08:39
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save madhavanmalolan/0ea8cdb960cc1749ed643ea06a5798b2 to your computer and use it in GitHub Desktop.
Save madhavanmalolan/0ea8cdb960cc1749ed643ea06a5798b2 to your computer and use it in GitHub Desktop.
string[9] memory parts;
parts[0] = '<svg xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMinYMin meet" viewBox="0 0 350 350"><style>.base { fill: white; font-family: serif; font-size: 14px; }</style><rect width="100%" height="100%" fill="black" /><text x="10" y="20" class="base">';
parts[1] = Strings.toString(1);
parts[2] = '</text><text x="10" y="40" class="base">';
parts[3] = "to";
parts[4] = '</text><text x="10" y="60" class="base">';
parts[5] = "for";
parts[6] = '</text><text x="10" y="80" class="base">';
parts[7] = "comment";
parts[8] = '</text></svg>';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment