GCELL_ARRAY(3NCARG)
โจ GCELL_ARRAY โจ
okay bestie, welcome to the NCAR GRAPHICS corner of the universe ๐ this little guy lives in section 3NCARG and its whole personality is: draw a rectangle, chop it up, colour it in. no cap.
๐ NAME ๐
gcell_array โ draw a Cell array from two corner points ๐ฆ
๐ธ DESCRIPTION ๐ธ
gcell_array (Cell array) โ so here's the vibe: it draws a cell array, and it starts with a rectangle that you specify using two corner points. then that initial rectangle gets subdivided into subrectangles by specifying an arbitrary number of divisions in the X and Y directions. each subrectangle (or cell) gets assigned a color and is drawn with that color. that's it, that's the whole job, and honestly? iconic. ๐
โจ SYNOPSIS โจ
#include <ncarg/gks.h>
void gcell_array(const Grect *rect, const Gpat_rep *colr_array);
๐ DESCRIPTION (the details era) ๐
rect.p.xโ (Gfloat, Input) โ X world coordinate of point 1. ๐rect.p.yโ (Gfloat, Input) โ Y world coordinate of point 1. ๐rect.q.xโ (Gfloat, Input) โ X world coordinate of point 2. ๐rect.q.yโ (Gfloat, Input) โ Y world coordinate of point 2. ๐colr_array.dims.size_xโ (Gint, Input) โ X dimension of the color index arraycolr_array.colr_array. ๐งฎcolr_array.dims.size_yโ (Gint, Input) โ Y dimension of the color index arraycolr_array.colr_array. ๐งฎcolr_array.colr_arrayโ (Gint *, Input) โ an array of color indices, dimensionedcolr_array.dims.size_xbycolr_array.dims.size_y, which is used to determine the color of each cell drawn. ๐ this is literally the whole colour palette of your little grid, so treat it with respect, fr fr.
๐ USAGE ๐
Points 1 and 2 must be diagonally opposite corner points of a rectangle. that rectangle then gets divided into colr_array.dims.size_x cells in the X dimension and colr_array.dims.size_y cells in the Y dimension. diagonal besties only, no adjacent-corner nonsense ๐
๐ซถ ACCESS ๐ซถ
to use the GKS C-binding routines, load the ncarg_gks and ncarg_c libraries. that's the entry fee, bestie, pay it. ๐ธ
๐ SEE ALSO ๐
- Online:
gset_colr_rep(3NCARG),gks(3NCARG),ncarg_gks_cbind(3NCARG) - Hardcopy: User's Guide for NCAR GKS-0A Graphics; NCAR Graphics Fundamentals, UNIX Version
go read those too, they're giving main character energy ๐
๐ COPYRIGHT ๐
Copyright (C) 1987-2009 University Corporation for Atmospheric Research The use of this Software is governed by a License Agreement.
and that's a wrap on GCELL_ARRAY(3NCARG) from the UNIX manual, dated March 1993 โ yeah she's an elder but she ATE and left no crumbs ๐โจ stay coloured, stay subdivided, mwah ๐
๐ฆ where this page comes from
- debian bookworm: libncarg-dev 6.6.2.dfsg.1-1
- debian trixie: libncarg-dev 6.6.2.dfsg.1-10+b2
- ubuntu jammy: libncarg-dev 6.6.2-10build2
- ubuntu questing: libncarg-dev 6.6.2.dfsg.1-10build2
- ubuntu resolute: libncarg-dev 6.6.2.dfsg.1-12
- ubuntu stonking: libncarg-dev 6.6.2.dfsg.1-12build2
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms