Wired Digital Screen
From GMod Wiki
Wiremod Tool | Back |
Function: | Create a screen, with a resolution up to 512x512 |
Primary fire: | Places a screen |
Secondary fire: | |
Reload: | |
Notes: |
Brief
A screen where you can make a monochrome drawing. It is also possible to make color drawings using wirelink. Using Hi-speed devices cheat sheet set screen's mode to one of color modes and fill in RGB data. Using this method 128x128 digital screen can be filled within a few seconds.
Instructions
Use PixelX and PixelY to control where to draw. Use PixelG to control the colour, and Clk to "lower the pencil".
Inputs
- Inputs: PixelX, PixelY, PixelG, Clk, FillColor, ClearRow, ClearCol
- PixelX: What Pixel, on the horizontal axis, is going to be edited. The columns are numbered from left to right.
- PixelY: What Pixel, on the vertical axis, is going to be edited. The rows are numbered from top to bottom.
- PixelG: The color of the pixel you want to draw. It ranges from 0 (black) to 255 (white) over varying shades of grey.
- Clk: The Screen will only listen as long as this is greater than or equal to 1.
- FillColor: Sets the background colour of the screen, from 0 to 255. Whenever you change this value, the whole screen is painted this colour.
- ClearRow: Inputting value clears corresponding row (fills it black).
- ClearCol: Inputting value clears corresponding column (fills it black).
Outputs
- Outputs: Wire Hi-Speed link
Variables
- Model: The model of the screen.
- Resolution: The resolution of the screen. (Up to 512x512)
Useful hints
Make color drawings using HiSpeed Devices Cheat Sheet .
Example
Revan's Digital Screen Tutorial
Address Information
Address | Contents |
0 to 786431 | Image data. |
1048569 | Color mode (0 to 3 - see below) |
1048570 | Clear row |
1048571 | Clear column |
1048572 | Screen height (maximum 512) |
1048573 | Screen width (maximum 512) |
1048574 | Clear screen |
1048575 | Clk (Same as Clk input) |
Color Modes
Mode | Description |
0 | Pixels are 1 cell wide, in RGBXXX form. |
1 | Pixels are 3 cells wide, containing the red, green and blue components respectively. |
2 | Pixels are 1 cell wide, in 0xRRGGBB (hexadecimal) form. |
3 | Pixels are 1 cell wide, in RRRGGGBBB form. |
The maximum value of the red, green and blue components is 255 in the last three modes.
Wired Digital Screen |
Description: | A screen where you can display color or monochrome image |
Original Author: | Kalleguld |
Contributors: | Don Kixot (rus) |
Created: | 3 June 2007 |