class Chip8::Display

Included Modules

Defined in:

devices/display.cr

Constant Summary

BACKGROUND_COLOR = SF.color(64, 62, 68)
BUFFER_SIZE = 64 * 32
HEIGHT = 32
PRIMRY_COLOR = SF.color(255, 231, 177)
SCALE = 30
WIDTH = 64

Constructors

Instance Method Summary

Instance methods inherited from module Chip8::DisplayProtocol

clear : Nil clear, set_pixel(x : UInt32, y : UInt32, value : Bool) : Bool set_pixel

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def clear : Nil #

[View source]
def draw #

[View source]
def set_pixel(x : UInt32, y : UInt32, value : Bool) : Bool #

[View source]
def window : SF::RenderWindow #

[View source]
def window=(window : SF::RenderWindow) #

[View source]