Hacker News new | ask | show | jobs
by Two4 920 days ago
Au contraire, you very much can embed bitmaps into SVGs - it's often the only way to export gradient meshes in a manner supported by all renderers. This can be done via the plain ol' `image` tag with an external file, or a data URI to directly embed the encoded bitmap file.
1 comments

If you want to be extra cursed, you can also place a bunch of 1x1 `<rect>`s next to each other and color them individually. For extra points, you can combine consecutive pixel of the same color into a say 2x1 or 1x5 rects. Or make use of `<use>` tags to implement a color pallete.