Skip to main content
Module

x/fresh_charts/utils.ts>transparentize

A server-side-rendered charting library for Fresh
Go to Latest
function transparentize
import { transparentize } from "https://deno.land/x/fresh_charts@0.2.1/utils.ts";

A utility function which takes a CSS string color value and applies the percentage of opacity to it and returns a new CSS string color value.

If the opacity is not provided, it defaults to 50%.

Parameters

value: string
optional
opacity: number