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 3c8d95d commit 6cdc70cCopy full SHA for 6cdc70c
src/webgl/3d_primitives.js
@@ -7,7 +7,6 @@
7
*/
8
9
'use strict';
10
-
11
var p5 = require('../core/main');
12
require('./p5.Geometry');
13
var constants = require('../core/constants');
@@ -1081,15 +1080,14 @@ p5.RendererGL.prototype.bezier = function(
1081
1080
z4
1082
) {
1083
if (arguments.length === 8) {
1084
- x4 = x3;
1085
y4 = y3;
+ x4 = x3;
+ y3 = z2;
1086
x3 = y2;
1087
- y3 = x2;
1088
- x2 = z1;
1089
y2 = x2;
+ x2 = z1;
1090
z1 = z2 = z3 = z4 = 0;
1091
}
1092
1093
var bezierDetail = this._pInst._bezierDetail || 20; //value of Bezier detail
1094
this.beginShape();
1095
for (var i = 0; i <= bezierDetail; i++) {
0 commit comments