/* Implementation of the DDA algorithm */ /* increment the columns, depending on the slope of the clock hand */ for ( col = colStart; col < colStop; col++ ) { row+=slope; clock[(int) round(row)][(int) col]='x'; } /* increment the rows, depending on the slope of the clock hand */ for ( row = rowStart; row < rowStop; row++ ) { col+=slope; clock[(int) row][(int) round(col)]='x'; }