Hi, I'm Barnaby Keene, also known as Southclaws.
Experienced with a wide variety of creative tools and technical skills, I like to solve design, storytelling and technical problems in digital media.
For generating in-game coordinates from a bitmap.
License: MIT License
Hi, I'm Barnaby Keene, also known as Southclaws.
Experienced with a wide variety of creative tools and technical skills, I like to solve design, storytelling and technical problems in digital media.
So the primary goal of this plugin is not to simply read bitmaps and provide an API to access the pixel values. It's to facilitate things like this http://forum.sa-mp.com/showthread.php?t=516560 and the API should provide a simple and optimised way to do that leaving Pawn to do as little work as possible.
I'm thinking there should be the standard open
and close
functions that allocate and free a bitmap.
While it's in memory, the plugin should process the data in some way (off thread probably?) to build something akin to an index so picking pixels based on colour is fast. The kinds of images this plugin will work well with are flat images of the world map with very few colours (like on the link above). So I'm thinking of a pixel sorter style algorithm with buckets for each colour that map to XY coordinates.
Possible API:
PointFromColour(int colour)
PointsFromColour(int colour, int dest[], int max)
If these operations do turn out to be slow, I'm thinking of a streaming asynchronous API that uses Pawn callbacks when data is available:
PointsFromColour(int colour, string callback)
callback
either for each pixel or a group of pixels of a predefined sizeStill needs ironing out, feedback appreciated!
Hual suggested this one: https://github.com/skywind3000/BasicBitmap
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.