Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

sogaiu/freja-frp

Repository files navigation

freja-frp

Simplified frp system extracted from freja by saikyun

Quickstart

  • Via a terminal, start by: janet main.janet

  • Move mouse in the window that should have appeared, type keys, etc. while examining terminal output.

Some Explanation

Inside main.janet is a typical loop setup for a jaylib program.

Specific to the frp system are:

  • A call to frp/init-chans which initializes the frp system.
  • Calls to frp/subscribe! which arrange for things to happen based on certain types of events (e.g. mouse movements, keys typed, etc.) which are typically captured in channels.
  • A call to frp/trigger that sits in an infnite loop. Each time it is called, it collects events since the last time through the loop and once gathered, processes the events.

Details

There is an edited version of the official documentation here.

Credits

  • saikyun

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages