-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added functionality to draw pixel and read color
- Loading branch information
Showing
7 changed files
with
167 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -159,6 +159,42 @@ Draw a line between two points: | |
|
||
`alpha` - alpha channel 0..255. Optional parameter for rgba textures | ||
|
||
#### drawpixels.pixel(buffer_info, x, y, red, green, blue, alpha) | ||
Draw a pixel: | ||
|
||
`buffer_info` - buffer information | ||
|
||
`x` - x position of pixel | ||
|
||
`y` - y position of pixel | ||
|
||
`red` - red channel of the color 0..255 | ||
|
||
`green` - green channel of the color 0..255 | ||
|
||
`blue` - blue channel of the color 0..255 | ||
|
||
`alpha` - alpha channel 0..255. Optional parameter for rgba textures | ||
|
||
#### drawpixels.color(buffer_info, x, y) | ||
Read color from a position in the buffer: | ||
|
||
`buffer_info` - buffer information | ||
|
||
`x` - x position to get color from | ||
|
||
`y` - y position to get color from | ||
|
||
RETURNS: | ||
|
||
`red` - red channel of the color 0..255 | ||
|
||
`green` - green channel of the color 0..255 | ||
|
||
`blue` - blue channel of the color 0..255 | ||
|
||
`alpha` - alpha channel 0..255. Optional parameter for rgba textures | ||
|
||
-------- | ||
|
||
If you have any questions or suggestions contact me: [email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters