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 array colr_array.colr_array. ๐Ÿงฎ
  • colr_array.dims.size_y โ€” (Gint, Input) โ€” Y dimension of the color index array colr_array.colr_array. ๐Ÿงฎ
  • colr_array.colr_array โ€” (Gint *, Input) โ€” an array of color indices, dimensioned colr_array.dims.size_x by colr_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 (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 ๐Ÿ’–