New version after 3 days
Lua Carousel » Devlog
The bad news is the previous version only lasted 3 days. The good news is Origedit had a couple more good suggestions which have made this version better:
- On narrow screens the overflow menu now spaces buttons a little apart so I'm not always scared of fat-fingering the wrong button.
- You can now use your keyboard's swipe and autocomplete features with Carousel.
- You can use your keyboard's paste feature with Carousel -- as long as it's short and a single line. It's still unreliable, though, and you're better off always using the 'paste' button in the app menu. (Which should now be easier to use without the spacing issue above.)
Today's example program is inspired by George Savva:
local X, Y = 200,300 local n = 2 -- scale function popcnt(n) local result = 0 while n ~= 0 do if bit.band(n, 1) == 1 then result = result+1 end n = bit.rshift(n, 1) end return result end local S = bit.lshift(1, 30) function sm(n) if n >= 0 then return n end return bit.bor(-n, S) end local g = love.graphics for y = -64,64 do for x = -64,64 do local x2, y2 = sm(x), sm(y) local b = bit.band(x2, y2) local c = popcnt(b) g.setColor(1-c/8, 1-c/8, 2-c/8) g.rectangle('fill', X+x*n, Y-y*n, n,n) end end
Files
carousel-bl.love 120 kB
34 days ago
carousel-bl-safe.love 120 kB
34 days ago
Get Lua Carousel
Lua Carousel
Write programs on desktop and mobile
Status | In development |
Category | Tool |
Author | Kartik Agaram |
Tags | LÖVE |
More posts
- New version after 9 days2 days ago
- New version after 40 days37 days ago
- Turn your phone or tablet into a chess clock50 days ago
- Guest program: bouncing balls67 days ago
- New version after 3 months, and turtle graphics77 days ago
- Interactively zooming in to the Mandelbrot set on a touchscreen96 days ago
- A little timer app97 days ago
- New version after 4 monthsJun 28, 2024
- Visualizing the digits of πMay 04, 2024
Leave a comment
Log in with itch.io to leave a comment.