crt

package
v0.3.26 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2021 License: MIT Imports: 5 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 = internal.LoadSettings().DisableCRT

DisableCRT bypasses the CRT effect.

Functions

This section is empty.

Types

type CRT

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

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