We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c58b32 commit ba661dcCopy full SHA for ba661dc
src/core/shape/attributes.js
@@ -103,11 +103,12 @@ p5.prototype.ellipseMode = function(m) {
103
* 2 pixelated 36×36 white ellipses to left & right of center, black background
104
*/
105
p5.prototype.noSmooth = function() {
106
- this.setAttributes('antialias', false);
107
if (!this._renderer.isP3D) {
108
if ('imageSmoothingEnabled' in this.drawingContext) {
109
this.drawingContext.imageSmoothingEnabled = false;
110
}
+ } else {
111
+ this.setAttributes('antialias', false);
112
113
return this;
114
};
0 commit comments