Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >> Метод: setPaletteColor
- Документация: function(index:number, color:number):number -- Set the palette color at the specified palette index. Returns the previous value.
- >> Метод: maxResolution
- Документация: function():number, number -- Get the maximum screen resolution.
- >> Метод: setDepth
- Документация: function(depth:number):number -- Set the color depth. Returns the previous value.
- >> Метод: setForeground
- Документация: function(value:number[, palette:boolean]):number, number or nil -- Sets the foreground color to the specified value. Optionally takes an explicit palette index. Returns the old value and if it was from the palette its palette index.
- >> Метод: getDepth
- Документация: function():number -- Returns the currently set color depth.
- >> Метод: getForeground
- Документация: function():number, boolean -- Get the current foreground color and whether it's from the palette or not.
- >> Метод: copy
- Документация: function(x:number, y:number, width:number, height:number, tx:number, ty:number):boolean -- Copies a portion of the screen from the specified location with the specified size by the specified translation.
- >> Метод: bind
- Документация: function(address:string[, reset:boolean=true]):boolean -- Binds the GPU to the screen with the specified address and resets screen settings if `reset` is true.
- >> Метод: setBackground
- Документация: function(value:number[, palette:boolean]):number, number or nil -- Sets the background color to the specified value. Optionally takes an explicit palette index. Returns the old value and if it was from the palette its palette index.
- >> Метод: slot
- Документация: 8
- >> Метод: getViewport
- Документация: function():number, number -- Get the current viewport resolution.
- >> Метод: set
- Документация: function(x:number, y:number, value:string[, vertical:boolean]):boolean -- Plots a string value to the screen at the specified position. Optionally writes the string vertically.
- >> Метод: setViewport
- Документация: function: 0x7fbd799db030
- >> Метод: type
- Документация: gpu
- >> Метод: setResolution
- Документация: function: 0x7fbd7aa38770
- >> Метод: get
- Документация: function(x:number, y:number):string, number, number, number or nil, number or nil -- Get the value displayed on the screen at the specified index, as well as the foreground and background color. If the foreground or background is from the palette, returns the palette indices as fourth and fifth results, else nil, respectively.
- >> Метод: address
- Документация: 9e4a4890-d28d-4d2b-b26c-10009e177323
- >> Метод: maxDepth
- Документация: function():number -- Get the maximum supported color depth.
- >> Метод: getBackground
- Документация: function():number, boolean -- Get the current background color and whether it's from the palette or not.
- >> Метод: fill
- Документация: function(x:number, y:number, width:number, height:number, char:string):boolean -- Fills a portion of the screen at the specified position with the specified size with the specified character.
- >> Метод: getPaletteColor
- Документация: function(index:number):number -- Get the palette color at the specified palette index.
- >> Метод: getScreen
- Документация: function():string -- Get the address of the screen the GPU is currently bound to.
- >> Метод: getResolution
- Документация: function():number, number -- Get the current screen resolution.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement