danielthepope / trntxt

:steam_locomotive::train::train: A data-friendly UK train times site
https://trntxt.uk
MIT License
36 stars 9 forks source link

Improve the icon generator #25

Closed danielthepope closed 2 years ago

danielthepope commented 9 years ago

(Unplanned idea - need to do some research) Use a JavaScript library to generate an SVG file (rather than using a base raster image and resizing it). Convert the SVG to PNG to the requested size. See if it can be done antialiased. And change the colour: blue is boring.

Birch-san commented 9 years ago

EaselJS is a good drawing library for JS. It was made by an old Flash dev who wanted to mimic Flash's drawing API. Thanks to node-canvas, a Node version of EaselJS was built that can draw canvas without a DOM, outputting to a PNG.