-
Notifications
You must be signed in to change notification settings - Fork 90
Closed
Milestone
Description
Expected Behaviour
- ctx.fillStyle = '#999'; // should be a grey color
Actual Behaviour
- ctx.fillStyle = '#999'; // is actually blue-ish
Steps To Reproduce
- See example snippet, or set ctx.fillStyle to any 3-digit hex value
Any Relevant Code Snippets
#!/usr/bin/env node
'use strict';
const PImage = require('pureimage');
const fs = require('fs');
const canvas = PImage.make(50,50);
const ctx = canvas.getContext('2d');
ctx.fillStyle = '#999';
// ctx.fillStyle = '#999999';
ctx.fillRect(0,0,50,50);
PImage.encodePNGToStream(
ctx.bitmap,
fs.createWriteStream('./example.png')
).then(() => console.log('xdg-open ./example.png'));
Platform
OS: Linux Fedora 32
Node Version: v12
NPM Version: N/A
PureImage Version: 0.2.4
Any Additional Info
Already fixed it. Wasn't sure if you want a PR for it or if you want to implement the fix yourself. Let me know. Side note, would you want all the defined CSS colors to be in named_colors? I can add them and I have an interest in them being included.
Metadata
Metadata
Assignees
Labels
No labels