Making images with transparent key value - it looks like chroma key.
https://en.m.wikipedia.org/wiki/Chroma_key
Search found 1182 matches
- Sun Apr 28, 2024 9:17 am
- Forum: General
- Topic: Image format size pickle
- Replies: 5
- Views: 183
- Fri Apr 26, 2024 3:53 pm
- Forum: Libraries and Tools
- Topic: Dithering with matrix
- Replies: 9
- Views: 8403
Re: Dithering with matrix
Dithering with pseudo-hexagonal matrix pattern: function dithering(data) local width, height = data:getDimensions() local canvasImageData = love.image.newImageData(width, height) local matrix = { -- 9 colors { 28, 85, 28, 85 }, { 142, 198, 142, 198 }, { 113, 57, 113, 57 }, { 227, 170, 227, 170 }, } ...
- Fri Apr 26, 2024 3:18 pm
- Forum: Libraries and Tools
- Topic: Image to polygon converter
- Replies: 2
- Views: 7718
Re: Image to polygon converter
Any post is better with examples. We are have an image: hexadecagon2.png Open file: 2024-04-26T17_15_39-Image to Polygon converter.png Drag-n-drop the image. Input 16 vertices and "Generate polygon": 2024-04-26T17_16_00-Image to Polygon converter.png Output formats: {36, 112, 58, 68, 84, 4...
- Thu Apr 25, 2024 2:00 pm
- Forum: Libraries and Tools
- Topic: Parabola functions in Lua
- Replies: 11
- Views: 90680
Re: Parabola functions in Lua
Two parabolas with common directrix have crossings on the same line: The the function to get crossing for the given horizontal line is: function focusFocusLineYCrossing (p1x, p1y, p2x, p2y, y) local cx = (p1x+p2x)/2 local cy = (p1y+p2y)/2 local m = (p2y-p1y)/(p2x-p1x) -- slope local x = cx - m*(y-p1...
- Tue Apr 23, 2024 4:30 pm
- Forum: Libraries and Tools
- Topic: Voronoi Fortune Additional Events in Lua
- Replies: 2
- Views: 278
Re: Voronoi Fortune Additional Events in Lua
Another desmos graphic solutions:
https://www.desmos.com/calculator/kzff2hb9d3
https://www.desmos.com/calculator/onvynga3da
https://www.desmos.com/calculator/kzff2hb9d3
https://www.desmos.com/calculator/onvynga3da
- Tue Apr 23, 2024 1:52 pm
- Forum: Support and Development
- Topic: Grid based movement
- Replies: 3
- Views: 224
Re: Grid based movement
Your code works, but try this code: function love.load() love.window.setTitle ('press WASD to move') gridSize = 64 player = { -- Initial grid position of the player gridPos = {x=1, y=1}, -- Change in grid position (due to movement) deltaGrid = {x=0, y=0}, -- Movement speed of the player (cells per s...
- Sun Apr 21, 2024 6:58 pm
- Forum: Libraries and Tools
- Topic: Voronoi Fortune Additional Events in Lua
- Replies: 2
- Views: 278
Re: Voronoi Fortune Events
Event 6: Parabola vertex event. 1) Subdivide arc (u10, u8) to left arc (u10, u11), flat (u11, u12) and arc (u12, u8). (Left arc has event to be collapsed at point v16) 2)Subdivide arc (u8, u9) to arc (u8, u13), flat (u13, u14) and right arc (u14, u9). (Right arc has event to be collapsed at point v...
- Sun Apr 21, 2024 6:50 pm
- Forum: Libraries and Tools
- Topic: Voronoi Fortune Additional Events in Lua
- Replies: 2
- Views: 278
Voronoi Fortune Additional Events in Lua
I've tried to make the Fortune's algorithm in Lua, but within limited frame, so it needs flat beach line and several new events: Event 1: First site event. Creating frame with x, y, w, h and finding any highest site (point with x, y). Adding first site to the diagram. Creating the beach line, first ...
- Fri Apr 19, 2024 5:16 pm
- Forum: Libraries and Tools
- Topic: Rasterizing polygons into images
- Replies: 5
- Views: 1203
Re: Rasterizing polygons into images
- Wed Apr 17, 2024 7:15 am
- Forum: Libraries and Tools
- Topic: Rasterizing polygons into images
- Replies: 5
- Views: 1203
Re: Rasterizing polygons into images
Wow! Very nice!
I've tried to make the d-string parser, but it was always bad, there are too much variations how you can write the same vectors.
I've tried to make the d-string parser, but it was always bad, there are too much variations how you can write the same vectors.