

Vertical coordinate of the end point of the lineįortran subroutine linerel (dx, dy) Descriptionĭraws a line from the current position to a point that is distanced dx horizontally and dy vertically from the current position using the current color. Horizontal coordinate of the end point of the line Vertical coordinate of the start point of the line Horizontal coordinate of the start point of the line The vertical position of the graphics cursor lineįortran subroutine line (x1, y1, x2, y2) Descriptionĭraws a line using the current color from point ( x1, y1) to point ( x2, y2). Retrieves the current vertical graphics cursor position Return Value The horizontal position of the graphics cursor gety

Retrieves the current horizontal graphics cursor position Return Value The color of the pixel as an RGB triplet getx Vertical point at which to query the pixel color Horizontal point at which to query the pixel color Retrieves the color as an RGB triplet at the pixel at the specified coordinates Parameters Parameter Pointer to the structure to fill with the arc detailsįortran function getpixel ( x, y ) Description Retrieves the arc coordinates used for the latest arc drawing request. Vertical point at which to start flood fill operationįortran subroutine getarccoords ( arccoords ) Description Horizontal point at which to start flood fill operation Parameters Parameterįortran subroutine floodfill (x, y, border) Descriptionįills in the screen starting at point ( x, y) until the color border is encountered. In C, the array is one-dimensional with the first horizontal position followed by the first vertical position followed by the second horizontal position, etc. In Fortran, the horizontal positions in the first column, and the vertical position in the second column. Parameters Parameterįortran subroutine fillpoly (numpoints, points) Descriptionĭraws a filled polygon of numpoints points using the locations in points. Parameters ParameterĬ void fillellipse (x, y, xradius, yradius)įortran subroutine fillellipse (x, y, xradius, yradius) Descriptionĭraws a filled ellipse centered at ( x, y) with the given radius using the current color. The start angle, stangle, and end angle, endangle, are measured in degrees counterclockwise with 0 degrees at 3 o’clock.

Parameters ParameterĬ void ellipse (x, y, stangle, endangle, xradius, yradius)įortran subroutine ellipse (x, y, stangle, endangle, xradius, yradius) Descriptionĭraws an ellipse centered at ( x, y) with the given radius using the current color. One to draw a top on the bar, zero to leave emptyįortran subroutine circle (x, y, radius) Descriptionĭraws a circle centered at ( x, y) with the given radius using the current color Parameters Parameterįortran subroutine drawpoly (numpoints, points) Descriptionĭraws a polygon of numpoints points using the locations in points.

The bar is outlined using the current line color and style. Parameters ParameterĬ void bar3d (left, top, right, bottom, depth, topflag)įortran subroutine bar3d (left, top, right, bottom, depth, topflag) Descriptionĭraws a three-dimensional rectangular, filled bar using the currently selected color and fill pattern. Parameters Parameterįortran subroutine bar (left, top, right, bottom) Descriptionĭraws a rectangular, filled bar using the currently selected color and fill pattern. arcĬ void arc (x, y, stangle, endangle, radius)įortran subroutine arc (x, y, stangle, endangle, radius) Descriptionĭraws a circular arc centered at ( x, y) in the current color. The graphics cursor, however, is never visible on the screen. The moveto subroutine can be used to set the position directly. A handful of routines will use this in-memory screen coordinate for drawing. One concept to understand in this section is the existence of a “current position” of the graphics cursor on the screen.
#Simply fortran appgraphics floodfill series
