Skip to content

[css-syntax][css-values] Add IEEE 754 float hex format SVG/CSS values #4564

Closed
@SieuDoTia

Description

@SieuDoTia

Please add IEEE 754 float hex format SVG/CSS values. Need hex format for create high precision line screen/half tone for print for use SVG replace PDF.

• Only need single precision float (32 bit float IEEE 754)
• use format "0x--------" from C, no confuse with "#---" or "#------" hex use for color
• format need 10 characters maximum, hex number shorter than decimal number for same precision, smaller file size
• big endian (more easy for human read it)
• also float format for color important for high precision/color control in print industry

Example SVG file here use big endian IEEE float format for draw grey circle with radius 100 at (50; 50), fill opacity 1.0 (color here):

Example SVG file here use big endian IEEE float hex format for draw grey (50%) circle with radius 100 at (50; 50), fill opacity 1.0:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg version="1.1"  width="100" height="100" >
  <circle cx="0x42480000" cy="0x42480000" r="0x42C80000" fill="rgb( 0x3F000000, 0x3F000000, 0x3F000000)" fill-opacity="0x3F800000" stroke="none" />
</svg>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions