Draw_line_color - hpgDesigns/hpgdesigns-dev.io GitHub Wiki

NOTOC {{-}} This function is part of the function set Drawing shapes

Notation

Description

Draws a gradient line from point (x1, y1) with col1 to (x2, y2) with col2.

Parameters

  • x1,y1: One end of the line.
  • x2,y2: The other end of the line.
  • col1, col2: Respective colors for (x1, y1) and (x2,y2). The color is then blended between the two points.

Return Values

Unknown.

Example Call

//Should draw a nice horizontal line with sea-like colors. Yes, I stole this from the make_color_rgb example call XD
draw_line_color(0,100,100,100,make_color_rgb(0,200,100),make_color_rgb(0,100,200))

See Also