From d240b98ff6187831aba7309cca012cef410b4b29 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Thu, 25 Jul 2002 12:46:12 +0000 Subject: Add missing color function documentation. Fix Fl_Tabs document WRT coloring of the tabs and pane. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2549 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- documentation/functions.html | 108 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 108 insertions(+) (limited to 'documentation/functions.html') diff --git a/documentation/functions.html b/documentation/functions.html index d38f2615f..cdd3f7666 100644 --- a/documentation/functions.html +++ b/documentation/functions.html @@ -13,10 +13,13 @@ A.
  • fl_alert
  • fl_ask
  • +
  • fl_average_color
  • fl_beep
  • fl_choice
  • fl_color_chooser
  • fl_color_cube
  • +
  • fl_contrast
  • +
  • fl_darker
  • fl_dir_chooser
  • fl_file_chooser
  • fl_file_chooser_callback
  • @@ -31,6 +34,7 @@ A.
  • fl_filename_setext
  • fl_gray_ramp
  • fl_input
  • +
  • fl_lighter
  • fl_message
  • fl_message_font
  • fl_message_icon
  • @@ -67,8 +71,12 @@ A.
  • Drawing Functions @@ -148,6 +156,37 @@ a shortcut for No.

    The fl_ask window. + +

    fl_average_color

    + +
    + +

    Include Files

    + + + +

    Prototype

    + + + +

    Description

    + +

    Returns the weighted average color between the two colors. +The red, green, and blue values are averaged using the following +formula: + +

    + +

    Thus, a weight value of 1.0 will return the +first color, while a value of 0.0 will return the second color. + +

    fl_beep

    @@ -303,6 +342,53 @@ fl_color_cube(R * (FL_NUM_RED - 1) / 255, + +

    fl_contrast

    + +
    + +

    Include Files

    + + + +

    Prototype

    + + + +

    Description

    + +

    Returns the foreground color if it contrasts sufficiently +with the background color. Otherwise, returns +FL_WHITE or FL_BLACK depending on +which color provides the best contrast. + + + +

    fl_darker

    + +
    + +

    Include Files

    + + + +

    Prototype

    + + + +

    Description

    + +

    Returns a darker version of the specified color. + +

    fl_dir_chooser

    @@ -806,6 +892,28 @@ label are after the default value.

    The fl_input window. + +

    fl_lighter

    + +
    + +

    Include Files

    + + + +

    Prototype

    + + + +

    Description

    + +

    Returns a lighter version of the specified color. + +

    fl_message

    -- cgit v1.2.3