Sponsored Content
Full Discussion: graphics commands ? ? ?
Top Forums Programming graphics commands ? ? ? Post 24532 by hell666 on Sunday 14th of July 2002 07:02:27 AM
Old 07-14-2002
There's nothing called "graphics.h" in UNIX. If you are looking for programming graphics in UNIX, You have the X-Window Programming (and many more), through which you can write your own GUI based applications.
About colours in UNIX, ksh supports colours. And ofcourse, bash too supports them. These colours are supported through some escape sequences the shell supports, to find out what, search the forums or google.
 

9 More Discussions You Might Find Interesting

1. UNIX Desktop Questions & Answers

Graphics And Animation

DOES ANYBODY KNOW WHY C OR ANY OTHER UNIX LANGUAGE IS USED IN THREE DIMENSIONAL ANIMATION AND RENDERING (5 Replies)
Discussion started by: aloysius1001
5 Replies

2. UNIX Desktop Questions & Answers

Graphics programing

Hi all! I`m new in Unix (Linux) and i whant to ask something! What language should i use for Linux developing.I meen applications an GAME DEVELOPING! Should i use C,TCL ??? Please help me on this ...:( (1 Reply)
Discussion started by: Sebastyan
1 Replies

3. Programming

Graphics libraries

I want to know if under Linux there are some graphics libraries and/or functions for using simple graphics in the 'console' screen. For example with MS-DOS (when I was using Borland Turbo C++ v1.01, a very old version) there was the include file <graphics.h> that allowed to enter the graphic... (1 Reply)
Discussion started by: robotronic
1 Replies

4. Programming

2D Graphics Lib

Hi, I am on Fedora9 and need to do some simple 2D graphics (for game development). I am looking for an ideal 2D library/package to be used with GCC. I have come accross GRX, libmxi and some OpenGL (The 3D), but none of which seems to be ok. I could not find any tutorial or support material... (1 Reply)
Discussion started by: nasersh
1 Replies

5. Ubuntu

graphics drivers

ok, right off the bat im going to say this, i know that there is about over 100 links on google for this, just none of them help me. i have a radeon mobility 7500 graphics card. and i want to enable the compiz effects via Administration/preferences/Appearance. the problem is that i can't get the... (12 Replies)
Discussion started by: Texasone
12 Replies

6. Linux

Fedora graphics on Virtualbox

Hi, I was wondering if someone could shed some light on this for me. I've installed Virtual Box on a Windows host PC and installed Fedora 11 as a guest OS (run by virtual box). But the resolution is stuck at 800x600 and I really hate this resolution. When using virtual box shouldn't it... (3 Replies)
Discussion started by: woofie
3 Replies

7. High Performance Computing

Graphics cards

More and more applications which consist of computationally intensive tasks rely on the graphics card's capabilities in order to speed up the calculations. The question is how can one know whether the graphics card will have any influence for a proprietary application? (2 Replies)
Discussion started by: figaro
2 Replies

8. OS X (Apple)

[Solved] links2 --enable-graphics from source, configure error: no graphics driver found.

Howdy I am trying to install links2 with graphics support on snow leopard 10.6.8 (xcode installed). I have had the program running last year, also installed from source - but then I had installed some image libraries with mac ports and fink - cannot reproduce that setup. Plus I would like to not... (6 Replies)
Discussion started by: butterbaerchen
6 Replies

9. Hardware

Sun X4100 graphics

Hello all. I have a requirement to install a aftermarket video card in the server, can you advise what fits? or if there is a sun riser part which convers the PCIx slot to PCIe The unit is a standard x4100 with PCIx slots, not an M2 with the PCIe slots. thanks (4 Replies)
Discussion started by: petebarchetta
4 Replies
Graph::colour(3pm)					User Contributed Perl Documentation					Graph::colour(3pm)

NAME
GD::Graph::colour - Colour manipulation routines for use with GD::Graph SYNOPSIS
use GD::Graph::colour qw(:colours :lists :files :convert); DESCRIPTION
The GD::Graph::colour package provides a few routines to work with colours. The functionality of this package is mainly defined by what is needed, now and historically, by the GD::Graph modules. FUNCTIONS
colour_list( number of colours ) Returns a list of number of colours colour names known to the package. Exported with the :lists tag. sorted_colour_list( number of colours ) Returns a list of number of colours colour names known to the package, sorted by luminance or hue. NB. Right now it always sorts by luminance. Will add an option in a later stage to decide sorting method at run time. Exported with the :lists tag. _rgb( colour name ) Returns a list of the RGB values of colour name. if the colour name is a string of the form that is acceptable to the hex2rgb sub, then the colour will be added to the list dynamically. Exported with the :colours tag. _hue( R,G,B ) Returns the hue of the colour with the specified RGB values. Exported with the :colours tag. _luminance( R,G,B ) Returns the luminance of the colour with the specified RGB values. Exported with the :colours tag. add_colour(colourname => [$r, $g, $b]) or add_colour('#7fe310') Self-explanatory. Exported with the :colours tag. rgb2hex($red, $green, $blue) hex2rgb('#7fe310') These functions translate a list of RGB values into a hexadecimal string, as is commonly used in HTML and the Image::Magick API, and vice versa. Exported with the :convert tag. read_rgb( file name ) Reads in colours from a rgb file as used by the X11 system. Doing something like: use GD::Graph::bars; use GD::Graph::colour; GD::Graph::colour::read_rgb("rgb.txt") or die "cannot read colours"; Will allow you to use any colours defined in rgb.txt in your graph. Exported with the :files tag. PREDEFINED COLOUR NAMES
white, lgray, gray, dgray, black, lblue, blue, dblue, gold, lyellow, yellow, dyellow, lgreen, green, dgreen, lred, red, dred, lpurple, purple, dpurple, lorange, orange, pink, dpink, marine, cyan, lbrown, dbrown. AUTHOR
Martien Verbruggen <mgjv@tradingpost.com.au> Copyright GIFgraph: Copyright (c) 1995-1999 Martien Verbruggen. Chart::PNGgraph: Copyright (c) 1999 Steve Bonds. GD::Graph: Copyright (c) 1999 Martien Verbruggen. All rights reserved. This package is free software; you can redistribute it and/or modify it under the same terms as Perl itself. SEE ALSO
GD::Graph, GD::Graph::FAQ perl v5.12.3 2005-12-14 Graph::colour(3pm)
All times are GMT -4. The time now is 10:46 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy