@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix mcr: <https://registry.apicrafter.io/vocab#> .
@prefix dt: <https://registry.apicrafter.io/datatype/> .
@prefix cat: <https://registry.apicrafter.io/category/> .
@prefix country: <https://registry.apicrafter.io/country/> .
@prefix tool: <https://registry.apicrafter.io/tool/> .

dt:rgbacolor a skos:Concept ;
    skos:inScheme <https://registry.apicrafter.io/> ;
    skos:notation "rgbacolor" ;
    skos:prefLabel "RGBA color (rgba() with an alpha channel)"@en ;
    skos:definition "Color in the CSS functional notation rgba(): red, green and blue from 0 to 255 and an opacity (alpha) from 0 (transparent) to 1 (opaque), as rgba(179, 226, 205, 1) or rgba(222,45,38,0.8). Charting libraries such as Plotly and Chart.js and stylesheets write colors with transparency this way, and chart exports keep them in the color fields of traces and markers. The form without alpha is rgbcolor, the hexadecimal one hexcolor. The regexp does not cover percentages or the space-separated syntax of CSS Color Level 4."@en ;
    skos:prefLabel "Цвет RGBA (rgba() с альфа-каналом)"@ru ;
    skos:broader dt:color ;
    skos:example "rgba(179,226,205,1)" ;
    skos:example "rgba(222, 45, 38, 0.8)" ;
    skos:example "rgba(0,0,0,0)" ;
    skos:example "rgba (255, 0, 0, 1)" ;
    mcr:status "draft" ;
    mcr:isPII false ;
    mcr:classification "categorical" ;
    mcr:regexp "^rgba ?\\(\\s*(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)\\s*,\\s*(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)\\s*,\\s*(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)\\s*,\\s*(?:0|1|0?\\.\\d+|1\\.0+)\\s*\\)$" ;
    rdfs:seeAlso <https://en.wikipedia.org/wiki/RGBA_color_model> ;
    rdfs:seeAlso <https://www.w3.org/TR/css-color-4/#rgb-functions> .
