Search found 672 matches

by Ref
Mon Sep 03, 2018 11:48 pm
Forum: Support and Development
Topic: Share a Shader!
Replies: 310
Views: 97275

Re: Share a Shader!

Ops! Old version now updated to 11.1
Best
by Ref
Mon Sep 03, 2018 9:03 pm
Forum: Support and Development
Topic: Share a Shader!
Replies: 310
Views: 97275

Re: Share a Shader!

Doesn't seem to be too much interest in this topic.
I'm still amazed at what people can do with them.

(ESC to exit)
by Ref
Fri Jul 13, 2018 10:37 pm
Forum: Support and Development
Topic: Indexed 16 colour palette simulation?
Replies: 23
Views: 1739

Re: Indexed 16 colour palette simulation?

Hey pgimeno! Late to the party but probably missing the point. Can do the same thing as your example without a shader. local palette = {{0, 0, 0, 1}, {0, 0, .7, 1}, {.7, 0, 0, 1}, {.7, 0, .7, 1}, {0, .7, 0, 1}, {0, .7, .7, 1}, {.7, .7, 0, 1}, {.7, .7, .7, 1}, {.3,.3,.3, 1}, {0, 0, 1, 1}, { 1, 0, 0, ...
by Ref
Thu Jun 14, 2018 3:45 pm
Forum: Support and Development
Topic: Hello! I could use some help making a basic animation in LOVE.
Replies: 3
Views: 538

Re: Hello! I could use some help making a basic animation in LOVE.

Tables are what you want. ans = { { image = love.graphics.newImage('somethingOne.png, x=100, y=100, sx = 0.2, sy = 0.2 }, { image=love.graphics.newImage(somethingTwo.png', x=300, y=100, sx=0.3, sy=0.3 } } and then love.draw() contains: love.graphics.draw( ans[currentFrame].image, ans[currentFrame].x...
by Ref
Wed Jun 13, 2018 10:48 pm
Forum: Support and Development
Topic: Hello! I could use some help making a basic animation in LOVE.
Replies: 3
Views: 538

Re: Hello! I could use some help making a basic animation in LOVE.

I can see what's causing you problems. I suggest eliminating 'activeFrame' and stick with 'currentFrame'. Then love.draw only has to contain im = animations[currentFrame] love.graphics.draw(im, love.graphics:getWidth()/2,love.graphics:getHeight()/2, 0, 0.2,0.2 ,im:getWidth()/2,im:getHeight()/2) Thin...
by Ref
Wed Jun 13, 2018 2:09 pm
Forum: Support and Development
Topic: Using love.graphics.newImage() with png files in an external directory
Replies: 7
Views: 652

Re: Using love.graphics.newImage() with png files in an external directory

Thanks grump.
Assume you mean:

Code: Select all

local data = imagedata:encode( "png" ):getString()
file:write( data )
by Ref
Tue Jun 12, 2018 11:53 pm
Forum: Support and Development
Topic: Using love.graphics.newImage() with png files in an external directory
Replies: 7
Views: 652

Re: Using love.graphics.newImage() with png files in an external directory

Not if you want a jpg or png file.
You have to encode the data into the appropriate format.
There in lies the rub.
Love combines formatting and sending the image to the app folder - not to the directory of your choice.
by Ref
Tue Jun 12, 2018 8:07 pm
Forum: Support and Development
Topic: Using love.graphics.newImage() with png files in an external directory
Replies: 7
Views: 652

Re: Using love.graphics.newImage() with png files in an external directory

That's the easy part!
How do I save the image to the original directory after modifying?
by Ref
Thu May 31, 2018 2:25 am
Forum: Support and Development
Topic: Anyone have a shader to put an outline around an image?
Replies: 13
Views: 1139

Re: Anyone have a shader to put an outline around an image?

Guess I'm not to fussy.
Only time I wanted to outline something I didn't need to much speed.
by Ref
Sun May 06, 2018 2:40 pm
Forum: Support and Development
Topic: Non-Image objects for GLSL shaders
Replies: 3
Views: 382

Re: Non-Image objects for GLSL shaders

Glad you've got it figured out.
I'm still struggling and hope you post what you come up with.
Best!
Edit: Second shader (primitives) a little more relevant.