crt

package
v0.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 30, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package crt renders a screen-space CRT monitor effect.

Index

Constants

This section is empty.

Variables

View Source
var DisableCRT bool

DisableCRT bypasses the CRT effect.

Functions

This section is empty.

Types

type CRT

type CRT struct {
	NoiseX          float64
	Offset          [2]float64
	RGBNoise        float64
	SineNoiseWidth  float64
	SineNoiseScale  float64
	SineNoiseOffset float64
	ScanLineTail    float64
	ScanLineSpeed   float64
	ScreenSize      float64
	Darkening       float64
	ScanLineDarker  float64
	ScanLineDarker2 float64
	FadeOut         float64
}

CRT is a screen-space graphical filter.

func (*CRT) Draw

func (c *CRT) Draw(render func())

Draw renders a frame.

func (*CRT) SetDefaults

func (c *CRT) SetDefaults()

SetDefaults sets the CRT settings to their default values.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL