Coder Social home page Coder Social logo

styling with colors about wob HOT 8 CLOSED

francma avatar francma commented on May 23, 2024
styling with colors

from wob.

Comments (8)

njoyard avatar njoyard commented on May 23, 2024

Radius is not possible, wob only draws rectangles.

Colors can be customized either on the command line (see wob --help) or when piping commands to it (eg 42 #aarrggbb #aarrggbb #aarrggbb, colors being background, border and bar respectively).

Geometry can be customized on the command line, too (see wob --help as well).

from wob.

eoli3n avatar eoli3n commented on May 23, 2024

Thanks, is there any way to add the radius feature ?

from wob.

progandy avatar progandy commented on May 23, 2024

Thanks, is there any way to add the radius feature ?

Yes, but you'd have to do some maths and calculate the pixels for the arc manually (e.g. Bresenham algorithm) since wob does not use any graphics library.

from wob.

eoli3n avatar eoli3n commented on May 23, 2024

Any exemple to understand ?

from wob.

progandy avatar progandy commented on May 23, 2024

Any exemple to understand ?

Here is some information if you want to try to implement it: http://members.chello.at/~easyfilter/bresenham.html

from wob.

eoli3n avatar eoli3n commented on May 23, 2024

I use wob 0.8.1 and i don't see anything related to colors configuration in wob --help.
But it works with for exemple echo "45 #929292A #303030AA #929292AA" | wob.

➜ wob --help                                                                                                                                                                                                                        17:36:01
wob: invalid option -- '-'
Usage: wob [options]

  -h        Show help message and quit.
  -v        Show the version number and quit.
  -t <ms>   Hide wob after <ms> milliseconds, defaults to 1000.
  -m <%>    Define the maximum percentage, defaults to 100. 
  -W <px>   Define display width in pixels, defaults to 400. 
  -H <px>   Define display height in pixels, defaults to 50. 
  -o <px>   Define border offset in pixels, defaults to 4. 
  -b <px>   Define border size in pixels, defaults to 4. 
  -p <px>   Define bar padding in pixels, defaults to 4. 
  -a <s>    Define anchor point; one of 'top', 'left', 'right', 'bottom', 'center' (default). 
            May be specified multiple times. 
  -M <px>   Define anchor margin in pixels, defaults to 0. 
  -O <name> Define output to show bar on or '*' for all. If ommited, focused output is chosen.
            May be specified multiple times.

No way to add colors in config file ? it will centralize config and would be easier to implement...

from wob.

eoli3n avatar eoli3n commented on May 23, 2024

For the radius feature, a user friendly config would be great, i can't understand why you can't wrap maths in wob to calculate radius.

EDIT: i just get what you mean. I'm not dev, that's a feature request.

from wob.

francma avatar francma commented on May 23, 2024

No way to add colors in config file ?

No.

Thanks, is there any way to add the radius feature ?

Maybe. Not a priority in my eyes right now.

I use wob 0.8.1 and i don't see anything related to colors configuration in wob --help.

It will be part of a next release.

from wob.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.