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.
2 parents e71b2cf + 6cdc70c commit d80a86fCopy full SHA for d80a86f
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');
@@ -1076,15 +1075,14 @@ p5.RendererGL.prototype.bezier = function(
1076
1075
z4
1077
) {
1078
if (arguments.length === 8) {
1079
- x4 = x3;
1080
y4 = y3;
+ x4 = x3;
+ y3 = z2;
1081
x3 = y2;
1082
- y3 = x2;
1083
- x2 = z1;
1084
y2 = x2;
+ x2 = z1;
1085
z1 = z2 = z3 = z4 = 0;
1086
}
1087
1088
var bezierDetail = this._pInst._bezierDetail || 20; //value of Bezier detail
1089
this.beginShape();
1090
for (var i = 0; i <= bezierDetail; i++) {
0 commit comments