Search found 10 matches

by qwws
Tue Aug 27, 2024 3:42 pm
Forum: Libraries and Tools
Topic: Bezier
Replies: 3
Views: 13860

Re: Bezier

This is a bezier function where you can get a bezier of any order https://github.com/qwwshs/lua_bezier example: bez = require "bezier" print(bez:GetBezier(0,1,0,1,0.5,{0,0,1,1,1,1})) function love.draw() for i=0,1,0.001 do local int = bez:GetBezier(0,1,0,1,i,{0,0,1,1,1,1,1,1,0.5,0.5}) lov...
by qwws
Tue Aug 27, 2024 3:40 pm
Forum: Libraries and Tools
Topic: Bezier
Replies: 3
Views: 13860

Re: Bezier

This is a bezier function where you can get a bezier of any order https://github.com/qwwshs/lua_bezier example: bez = require "bezier" print(bez:GetBezier(0,1,0,1,0.5,{0,0,1,1,1,1})) function love.draw() for i=0,1,0.001 do local int = bez:GetBezier(0,1,0,1,i,{0,0,1,1,1,1,1,1,0.5,0.5}) lov...
by qwws
Tue Aug 27, 2024 10:55 am
Forum: Libraries and Tools
Topic: Bezier
Replies: 3
Views: 13860

Bezier

This is a bezier function where you can get a bezier of any order https://github.com/qwwshs/lua_bezier example: bez = require "bezier" print(bez:GetBezier(0,1,0,1,0.5,{0,0,1,1,1,1})) function love.load() end function love.draw() for i=0,1,0.001 do local int = bez:GetBezier(0,1,0,1,i,{0,0,1...
by qwws
Sun Oct 01, 2023 6:25 am
Forum: Support and Development
Topic: It seems like there is an issue with my Fourier transform.
Replies: 1
Views: 5137

It seems like there is an issue with my Fourier transform.

This is error

Error

main.lua:20: size of C type is unknown or too large


Traceback

[love "callbacks.lua"]:228: in function 'handler'
main.lua:20: in function 'update'
[love "callbacks.lua"]:162: in function <[love "callbacks.lua"]:144>
[C]: in function 'xpcall'
by qwws
Fri Sep 22, 2023 3:59 am
Forum: Games and Creations
Topic: Bezier
Replies: 5
Views: 8339

Re: Bezier

darkfrei wrote: Thu Sep 21, 2023 10:22 am
qwws wrote: Thu Sep 21, 2023 10:02 am The bezier debugger.
Why control points are not on the tangent from end points of curve?
Screenshot_20230921-122123.png
Look at this?
by qwws
Fri Sep 22, 2023 3:03 am
Forum: Games and Creations
Topic: Bezier
Replies: 5
Views: 8339

Re: Bezier

darkfrei wrote: Thu Sep 21, 2023 10:22 am
qwws wrote: Thu Sep 21, 2023 10:02 am The bezier debugger.
Why control points are not on the tangent from end points of curve?
Screenshot_20230921-122123.png
Can you please explain the general approach for modifying it? I'm sorry, I'm not familiar with Bézier curves.
by qwws
Thu Sep 21, 2023 10:02 am
Forum: Games and Creations
Topic: Bezier
Replies: 5
Views: 8339

Bezier

The bezier debugger.
by qwws
Fri Aug 25, 2023 3:11 pm
Forum: Support and Development
Topic: Can the love2d open a Chinese path?
Replies: 2
Views: 1123

Re: Can the love2d open a Chinese path?

Thank you very much.
by qwws
Fri Aug 25, 2023 11:59 am
Forum: Support and Development
Topic: Can the love2d open a Chinese path?
Replies: 2
Views: 1123

Can the love2d open a Chinese path?

My Windows user name is chinese ,I use filesystem loading image after obtaining the love2d path(known images exist).but love2d reported an error,saying that the image does not exist. :(