Search found 690 matches

by Ref
Tue May 12, 2020 11:31 pm
Forum: General
Topic: How to correctly read text from keyboard
Replies: 7
Views: 4289

Re: How to correctly read text from keyboard

I don't know about "correct" but I've hacked a library together that allows test input without too much of a burden.
Sure you will come up with something better but might get some ideas from this.
Best
by Ref
Sun Apr 12, 2020 9:18 pm
Forum: Libraries and Tools
Topic: simple tool for converting CSS color names to RGB/A
Replies: 5
Views: 1904

Re: simple tool for converting CSS color names to RGB/A

More power to you!
I tried to group the colors together but the names just don't convey the colors I expect.
Best
by Ref
Sun Apr 12, 2020 1:11 am
Forum: Libraries and Tools
Topic: simple tool for converting CSS color names to RGB/A
Replies: 5
Views: 1904

Re: simple tool for converting CSS color names to RGB/A

yetneverdone really doesn't appreciate how much effort went in to your file.
My only interest is the opposite of yours - I really don't know the names of the various colors.
Some of the names really don't bring to mind the color.
Best
by Ref
Sun Jan 19, 2020 6:27 pm
Forum: Support and Development
Topic: Re: Hash
Replies: 3
Views: 1443

Re: Hash[resolved]

As I expected - my bad.
I overwrote the function in a library.
by Ref
Fri Jan 17, 2020 10:22 pm
Forum: Support and Development
Topic: Re: Hash
Replies: 3
Views: 1443

Re: Hash

Is it just me or is the WIKI backward?

Code: Select all

rawdigest = love.data.hash( hashFunction, data )
It only seems to work for me if the arguments are reversed???

Code: Select all

rawdigest = love.data.hash( data, hashFunction )
by Ref
Sun Dec 22, 2019 10:08 pm
Forum: Support and Development
Topic: Share a Shader!
Replies: 321
Views: 163165

Re: Share a Shader!

Just another simple Shader.
Splits a colored image into separate R,G,B images.
by Ref
Fri Dec 20, 2019 7:43 pm
Forum: Support and Development
Topic: In need of example code of this matter
Replies: 4
Views: 3153

Re: In need of example code of this matter

Maybe something like this? PointInBox = function( point, box ) local x, y, w, h = unpack( box ) local px, py = point[1], point[2] if px>=x and px<=x+w and py>=y and py<=y+h then return true end return false end touch = function( box ) local mx, my = love.mouse.getPosition( ) if love.mouse.isDown( 1 ...
by Ref
Fri Dec 20, 2019 7:25 pm
Forum: Support and Development
Topic: Help to create enemies
Replies: 5
Views: 2193

Re: Help to create enemies

This might give you some ideas.
Best
by Ref
Sun Aug 18, 2019 1:42 am
Forum: Support and Development
Topic: Stencil Help
Replies: 4
Views: 2052

Re: Stencil Help

Maybe something like this in reverse?
(Very old code so don't know how good it is)
by Ref
Wed Jul 31, 2019 3:37 pm
Forum: Support and Development
Topic: Rotating around different points depending on controller input
Replies: 7
Views: 4028

Re: Rotating around different points depending on controller input

Pgimeno obviously has a better understanding of what you want to accomplish. From your initial post I could see how you could accomplish what you asked using ox and oy and applying an offset to the x and y coordinates. For the life of me, I can't visualize exactly how you want the mechanics to work ...