Ooops
August 04, 2020, 12:49:21 PM

Author Topic: Beizer Line  (Read 148 times)

Offline Hardcoal

  • Sr. Member
  • ****
  • Posts: 467
Beizer Line
« on: July 12, 2020, 05:23:43 PM »
Hi.. Im looking for a code i had once..

of a Bezier line drawer

ive seen what there is on this site.. but i had another one..

this is section of the code from what remained from the original code..

   For Local I:Float = 1 To segments
   
      Local t:Float = i/segments
      
      Local x2:Float = PointX1*(1-t)^3 + 3*v1x*(1-t)^2*t + 3*v2x*(1-t)*t^2 + PointX2*t^3
      Local y2:Float = PointY1 * (1 - t) ^ 3 + 3 * v1y * (1 - t) ^ 2 * t + 3 * v2y * (1 - t) * t ^ 2 + PointY2 * t ^ 3

      DrawLine (x1, y1, x2, y2)

      'Next Line
      x1 = x2
      y1 = y2
      
   Next
Go with the Flow

Offline Ashmoor

  • Jr. Member
  • **
  • Posts: 60
Re: Beizer Line
« Reply #1 on: July 15, 2020, 04:18:21 PM »
Maybe this is what you are looking for?

https://mojolabs.nz/codearcs.php?code=1760

Offline Hardcoal

  • Sr. Member
  • ****
  • Posts: 467
Re: Beizer Line
« Reply #2 on: July 15, 2020, 07:07:33 PM »
No. but no worries.. I overcome the problem give or take
Go with the Flow

 

SimplePortal 2.3.6 © 2008-2014, SimplePortal