HypnoSpec features¶
Every setting Hypna’s player understands, by feature id. Values marked as strings are
stored as strings in the document even when they are numbers. See
Editing the HypnoSpec document for the document
shape, and https://hypna.space/hypnospec/ for the generated schema pages.
Content features¶
space.hypna.feature.content.lineslines(string list, default empty): the session’s lines. Used by MST, BST, STT.space.hypna.feature.content.texttext(string, default empty): the phrase or instruction. Used by WLT, ECT, ACT.space.hypna.feature.content.timetime(number, default 0): the iteration count. Lines to type (WLT), lines to play (BST), completions (ECT).space.hypna.feature.content.distractorslines(string list),duration(ms, default"3501"),base_frequency(ms, default"1501"),base_random_offset(boolean, default true).
Session-type settings¶
space.hypna.feature.settings.mstline_duration(ms as string, default"3500").space.hypna.feature.settings.bstword_duration(ms as string, default"500").space.hypna.feature.settings.wltinterrupters(string list),punishment(string list),interrupters_enabled(boolean, true),interrupters_frequency(keystrokes as string,"40"),interrupters_freq_random(boolean, true),overlay_display_time(ms as string,"3000"),add_lines_as_punishment(integer, 0).space.hypna.feature.settings.ectwrongWords(string list),punishment(string list).space.hypna.feature.settings.stt,space.hypna.feature.settings.actno configuration keys.
space.hypna.feature.settings.yssenabled(boolean, true). MST and BST only.
Optional settings features¶
space.hypna.feature.settings.audiourl(string): direct link to an audio file. Always loops.space.hypna.feature.settings.customCSSdata(string): raw CSS injected into the player.space.hypna.feature.settings.distractors.basicenabled(boolean, true). Requirescontent.distractors.space.hypna.feature.settings.distractors.wallenabled(boolean, false),rerender_frequency(ms as string,"3500"). Requirescontent.distractors.
Spiral features (spiral slot)¶
space.hypna.feature.spirals.mediamedia_url(string,/static/utils/large.gif),media_is_image(boolean, true),media_opacity(string,"0.5").space.hypna.feature.spirals.webglopacity("0.6"),spiral_color(#FFFFFF),bg_color(#000000),spin_speed(1),throb_speed(2),throb_strength(1),zoom(1).space.hypna.feature.spirals.customglall of the WebGL keys plus
fragment_source(string): a WebGL 1 fragment shader. See GLSL spirals.
Image features (images slot)¶
space.hypna.feature.images.basicimages(string list of URLs),switch_frequency(ms as string,"950"),images_handled_by_outside_source(boolean, true).space.hypna.feature.images.scatterimages,images_handled_by_outside_source,spawn_frequency("1500"),lifetime("4000"),fade_duration("800"),max_images(6),size(25),zoom_from(0.6),opacity(0.9).
Session types and their required features¶
Type |
Required features |
|---|---|
|
content.lines, settings.mst, one spiral, one images feature |
|
content.lines, content.time, settings.bst, one spiral, one images feature |
|
content.text, content.time, settings.wlt |
|
content.lines, settings.stt |
|
content.text, content.time, settings.ect |
|
content.text, settings.act |