core

package
v0.0.0-...-278a2b0 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlendMode

type BlendMode = ebiten.Blend

The blend mode specifies how to compose colors when drawing glyphs:

  • Without Ebitengine, the blend mode can be BlendOver, BlendReplace, BlendAdd, BlendSub, BlendMultiply, BlendCut and BlendHue.
  • With Ebitengine, the blend mode is ebiten.Blend.

type GlyphMask

type GlyphMask = *ebiten.Image

A GlyphMask is the image that results from rasterizing a glyph. You rarely need to use glyph masks directly unless you are working with advanced functions.

Without Ebitengine, GlyphMask defaults to *image.Alpha. The image bounds are adjusted to allow drawing the glyph at its intended position. In particular, bounds.Min.Y is typically negative, with y = 0 corresponding to the glyph's baseline, y < 0 to the ascending portions and y > 0 to the descending ones.

Notice that masks only use alpha values, but these don't represent opacity or luminance, but rather indices from the font's color set.

type Target

type Target = *ebiten.Image

Alias to allow compiling the package without Ebitengine (-tags cputext).

Without Ebitengine, Target defaults to image/draw.Image.

Jump to

Keyboard shortcuts

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