Skip to content

Commit

Permalink
starts from step to add cap at beginning of the curve
Browse files Browse the repository at this point in the history
  • Loading branch information
diyaayay committed Sep 2, 2024
1 parent fb068f7 commit 50f609d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/webgl/3d_primitives.js
Original file line number Diff line number Diff line change
Expand Up @@ -2984,7 +2984,7 @@ p5.RendererGL.prototype.bezierVertex = function(...args) {
this._lookUpTableBezier = [];
this._lutBezierDetail = this._pInst._curveDetail;
const step = 1 / this._lutBezierDetail;
let start = 0;
let start = step;
let end = 1;
let j = 0;
while (start < 1) {
Expand Down Expand Up @@ -3144,7 +3144,7 @@ p5.RendererGL.prototype.quadraticVertex = function(...args) {
this._lookUpTableQuadratic = [];
this._lutQuadraticDetail = this._pInst._curveDetail;
const step = 1 / this._lutQuadraticDetail;
let start = 0;
let start = step;
let end = 1;
let j = 0;
while (start < 1) {
Expand Down Expand Up @@ -3288,7 +3288,7 @@ p5.RendererGL.prototype.curveVertex = function(...args) {
this._lookUpTableBezier = [];
this._lutBezierDetail = this._pInst._curveDetail;
const step = 1 / this._lutBezierDetail;
let start = 0;
let start = step;
let end = 1;
let j = 0;
while (start < 1) {
Expand Down

0 comments on commit 50f609d

Please sign in to comment.