HTML5 Game - Canvas Red color

Introduction

The following table shows the available options, using the color red as an example.

Method Color Value
Hexadecimal #FF0000
Hexadecimal (short) #F00
RGBrgb(255,0,0)
RGB (percent) rgb(100%,0%,0%)
RGBA rgba(255,0,0,1.0)
RGBA (percent) rgba(100%,0%,0%,1.0)
HSLhsl(0,100%,50%)
HSLA hsla(0,100%,50%,1.0)
SVG (named color) red

Related Topic