gen_charmap: Define a map between characters and generated glyphs

gen_charmapR Documentation

Define a map between characters and generated glyphs

Description

Generate a set of control points for a collection of glyphs mapped to characters. This initial map is then modified by merging n glyphs into one and adding jitter.

Usage

gen_charmap(
  seed,
  n = 26,
  n_control = 4,
  n_tall = 4,
  size_tall = 4,
  n_merge = 3,
  n_variation = 10,
  jitter = 1/5,
  scale = 0.5,
  rotation = -pi/6,
  sp = TRUE
)

Arguments

seed

random seed for the character map.

n

number of letters in the character map. The total length of the character map is n + 3 (addition of ".", ",", "?")

n_control

number of control points for each glyph

n_tall

number of tall glyphs

size_tall

radius of the set of control points for tall glyphs

n_merge

number of glyphs concatenated in the modified map

n_variation

number of variations of each glyphs in the map

jitter

amount of jitter added to each variations

scale, rotation

scale (0-1) and rotation (radian) of the set of control points

sp

add a blank glyph corresponding to whitespace character

Value

a list-column dataframe with a character and layout column (set of control points).


picasa/generate documentation built on Feb. 28, 2025, 6:51 a.m.