domoszlai / juicy-gcode

A lightweight SVG to GCode converter for maximal curve fitting
https://hackage.haskell.org/package/juicy-gcode
MIT License
115 stars 7 forks source link

Does colour support have an "after" option? #26

Open berkut0 opened 1 year ago

berkut0 commented 1 year ago

Is that an exhaustive number of settings? It may also be worth adding a 'default' option in the event of failed detection

colors:
   "000000": 
      before: |
        ; black
      passes: 1
      parameters:
        F: 1.0 
        S: 80
   "FF0000": 
      before: |
        ; red
      passes: 1
      parameters:
        F: 2.0 
        S: 25
domoszlai commented 1 year ago

Probably a "default" option would make sense

berkut0 commented 1 year ago

@domoszlai and what do you think about extending this config a bit to add "after:" for example?

domoszlai commented 1 year ago

"after" also makes sense, probably. Could you give me an example when it would be useful?

berkut0 commented 1 year ago

Do I have to specify these parameters if they exist in the config? Can they be optional and not specified if they are not used?

Mostly for consistency, but I want to use "After" in my setup to clean the nozzle of a spray head before changing a tool