Posted 30 September 2015 - 01:17 AM
Using this program you are able to view, edit, and convert Microsoft Windows Bitmap files into ComputerCraft Paint files.
It is an API as well as a command line program, meaning it can function from the Command line.
To use it as an API run the program and the API will be loaded.
It introduces two classes, and they are Color3 and the expected Bitmap class.
Here are functions included in the Color3 class:
Color3.new(red, green, blue)
Color3:GetHue()
Color3:ToComputerCraftColor()
Color3:ToComputerCraftDither()
Here are all functions included in the Bitmap class:
Bitmap.new(width, height, backgroundColor3)
Bitmap.load(path)
Bitmap:Save(path)
Bitmap:SaveAsPaintFile(path)
Bitmap:DrawToTerm(x, y, [scale], [dithered])
Bitmap:GetPixel(x, y)
Bitmap:SetPixel(color, x, y)
To use it as a command line function run the file with additional arguments.
Use bitmap view <path> from the command line to view files.
Use bitmap convert <path> <destination> to convert a bitmap file to the ComputerCraft Paint format.
To download the API program use pastebin get B2NgcUsp.
It is an API as well as a command line program, meaning it can function from the Command line.
To use it as an API run the program and the API will be loaded.
It introduces two classes, and they are Color3 and the expected Bitmap class.
Here are functions included in the Color3 class:
Color3.new(red, green, blue)
Color3:GetHue()
Color3:ToComputerCraftColor()
Color3:ToComputerCraftDither()
Here are all functions included in the Bitmap class:
Bitmap.new(width, height, backgroundColor3)
Bitmap.load(path)
Bitmap:Save(path)
Bitmap:SaveAsPaintFile(path)
Bitmap:DrawToTerm(x, y, [scale], [dithered])
Bitmap:GetPixel(x, y)
Bitmap:SetPixel(color, x, y)
To use it as a command line function run the file with additional arguments.
Use bitmap view <path> from the command line to view files.
Use bitmap convert <path> <destination> to convert a bitmap file to the ComputerCraft Paint format.
To download the API program use pastebin get B2NgcUsp.
Edited on 30 September 2015 - 02:44 PM