Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable anti-alias? #9

Closed
earthling4211573 opened this issue Dec 2, 2010 · 3 comments
Closed

Disable anti-alias? #9

earthling4211573 opened this issue Dec 2, 2010 · 3 comments

Comments

@earthling4211573
Copy link

It's currently not possible disable anti-aliasing right? I guess it should be done in the browsers implementation of canvas but while that's not here is it possible to work around it? What would be the optimal solution? At least for basic shapes.

This feature is desirable for people working with the "retro computer graphics style".

@kangax
Copy link
Member

kangax commented Dec 2, 2010

This thread more or less summarizes it: http://stackoverflow.com/questions/195262/can-i-turn-off-antialiasing-on-an-html-canvas-element

Looks like the only way to achieve aliased lines at the moment is to implement specific drawing mechanism. Feel free to take a stab at it ;)

@earthling4211573
Copy link
Author

I see, I guess I'll have a stab at it in a few weeks then and see how far I get.

I assume it's basically just implementing drawing algorithms, I could perhaps look at how Firefox or Chrome do it in their implementation of canvas and port it to JavaScript.

@kangax
Copy link
Member

kangax commented Jul 15, 2011

I'm closing this, since there isn't much that can be done on my end. I'd love to see if you came up with something!

@kangax kangax closed this as completed Jul 15, 2011
asturur added a commit that referenced this issue May 5, 2015
asturur added a commit that referenced this issue Dec 24, 2015
birdage pushed a commit to birdage/fabric.js that referenced this issue Jun 19, 2018
fixes issues
- issue fabricjs#9
- issue fabricjs#10
- issue fabricjs#15
birdage pushed a commit to birdage/fabric.js that referenced this issue Jun 19, 2018
**0.4.0** New Features and fixes
    - Fixes
    -- Upgraded to latest packages (thanks @fjogeleit)
    -- Fix for undo/redo (thanks @pomelyu)
    -- Issue fabricjs#9 fixed
    -- Issue fabricjs#10 and fabricjs#15 you can no longer give dataUrl as value only as background image and/or by adding the image as an object
    - Breaking Changes
    -- `data` and `dataType` properties have been replaced with `value` and `defaultValue`
    to be able to use the component as controlled component
    -- node support of 6,7 and 8
    - New Features
    -- ability to add an image as object
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants