Code Monkey home page Code Monkey logo

Comments (1)

ruckertm avatar ruckertm commented on August 24, 2024

The current version 2.0 HINT file format does not support any color.

Color support is planed for future versions. Adding color support to the file format is not the difficult part. The design of primitives, that are flexible and can be integrated without too much effort into TeX and most importantly LaTeX is the challenging part.
Just reproducing the PDF primitives is an option, but possibly not the best.

Here is a proposal for discussion:

\HINTbackground
Changes the background of the enclosing box.
If no background color is given the box is transparent.
The page background can be specified in the page template.
If multiple background colors are specified in the same box the last one wins.
Nested boxes can have different background colors.

\HINTforeground
Changes the color of glyphs and rules.
The effect is limited to the enclosing hbox or paragraph.
The effect extends to sub-boxes or sub-paragraphs.
If no color is given the color black is used.
If multiple colors are specified within the same box or paragraph,
every color is used for all glyphs or rules following the color
specification up to the following color specification or the end of
the box or paragraph that contains the color specification.

Since the HINT file format is designed for displaying pages on a computer screen the ARGB representation of colors should be sufficient, given either as a device dependent 8 digit hexadecimal value like 0xFFA08030 or as four device independent decimal numbers in the range 0.0 to 1.0 separated by spaces.

from hint.

Related Issues (15)

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.