From 4fc28a42bd0613e3d234381ab716aa148e99894d Mon Sep 17 00:00:00 2001 From: sloumdrone Date: Tue, 16 Jul 2019 07:38:28 -0700 Subject: [PATCH] Updates notes and adds the first little bit of code --- filtress_notes.txt | 25 ++++++------------------- main.go | 27 +++++++++++++++++++++++++++ 2 files changed, 33 insertions(+), 19 deletions(-) create mode 100644 main.go diff --git a/filtress_notes.txt b/filtress_notes.txt index abbe1fd..267f319 100644 --- a/filtress_notes.txt +++ b/filtress_notes.txt @@ -1,23 +1,6 @@ -Farbdraw - -Takes the concept of interval.rs sound generation and moves it over to image generation. - -Users can update certain variables that continue on when not called directly, they can also have math oriented udpates as well as loops - -Possibility of functions (circle, square, etc) - -rgba averaging on draw where there is a previous layer - -different point sizes and a concept of soft or hard (hard being constant a channel soft being diminishing over time) - Lines can be drawn from a start point at an angle with a color soft or hard with an amount of pressure (that equates loosely to distance) - Points can be done mostly the same way - -Everything writes to rgba farbfeld. - -Possibility of user writable filter modules that can be activated via "use _______;" to do an opperation on teh whole canvas. - -- - - - - +Filtress +Inspired by interval.rs (generates audio via a simple command language), but filtering or otherwise drawing on images. Things have shifted to maybe doing image mangling based on input file. To do so I could just use the standard go image library to deal with the images. + + + + + + + + + @@ -102,9 +85,13 @@ FAD [op]int . . . Doing loops: +# The int after BEG represents the number of times to loop +# At present, loops may not be nested BEG int [loop contents] END . . . + + diff --git a/main.go b/main.go new file mode 100644 index 0000000..2f90f82 --- /dev/null +++ b/main.go @@ -0,0 +1,27 @@ +package main + +type point struct { + x int + y int + maxX int + maxY int +} + +type color int +type mode int + +type filterState struct { + red color + green color + blue color + alpha color + location point + mod mode + register int + fade uint + loop uint +} + +func main() { + +}