function
conic-gradient() — CSS reference
Colors change by angle around a center, clockwise from the top by default. A from angle rotates the starting ray. This differs from radial distance; use labeled HTML for any data shown with a conic image.
Formal Syntax & Structure
css syntaxcss
conic-gradient([ from <angle> ]? [ at <position> ]?, <angular-color-stop-list>) (representative)Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>CSS image painting lab</title><style>body {margin:0} .sample {background:#dcebe9;color:#182e32}body{background:white} #a{width:100px;height:80px;background-color:blue}#a{background-image:conic-gradient(red 0deg 180deg, blue 180deg 360deg)}</style><body><div id="a" aria-hidden="true"></div><p>Decorative background sample.</p></body></html>