180k views
3 votes
Basic Visual Effects (70\%6) The basic regurement of the viral ellest is to dange in nery tiene the peogram it eaceded: . rasdealy peation anall white dote de we of thig tlack dots. The black dats ane placed nat to asch ocher To achiese randareinsion, use the function of randsen. Dy pootiding tas input mithin a window with inve 1005×x×100px and they parmeter A and B, nodonO should noun a radom manber fin floating point in form a 10×10 ged rtrocture. Tle wale deta then aspear en tap of tha black deter and eath whate dat should not exceed the wea of the black dor that it Doat newindsalin = randemi 2, B) This part coven ali the codes in the given poogan escept the coet in the fonction of culculates inel finot ie txcept the codes in line 66. 78 . Once you couplete all the esdes exovpe line 66.75 eorrecthe you ahorald be alle ine the effec above. To ten tet setulk of buaie virual effect of yoe programs, you cas cotailer dinbble the line 64. 7 by by bunirg thens to conintene which in a furction for adrabced rimul effect in the seat phane. If you don't do m, you any not be whe to na the poogram for teiting - Advanced Visual Effects (30\%) Dy finishing the finction of calculatekictlinid. you thould be able to develop a nethod to ranipulate the size of the utitt dsts. Tbe clover a white dot locines toused tee center, the terter in at and vice vens. Vos thould try to solve tha problime by sirple cod tw. Tuo exantples are thous in the followint.

User Charlayne
by
7.0k points

1 Answer

2 votes

Final answer:

The question involves creating a grid of randomly positioned white dots on a black dot grid with white dot sizes varying based on the distance from the grid's center, using programming techniques such as randomization and size calculation functions.

Step-by-step explanation:

The student's question appears to pertain to a programming assignment involving visual effects, where the program must create a grid of black dots with randomly positioned white dots on top, and the size of the white dots varies according to their distance from the center. The code requirements suggest the use of a rand function to generate random positions and possibly a calculation method to determine the size of the white dots based on their proximity to the center.

To achieve the basic visual effect, randomization must be implemented to place white dots on a black dot grid. This seemingly involves using a provided function (potentially named 'randsen') which generates random numbers within a specified range. For the advanced visual effects, the student needs to complete a function responsible for calculating the size of the white dots, such that they become larger the closer they are to the center of the grid.

Note that the function names and specific implementation details, such as input parameters or returned values, appear to be omitted or obscured due to typos in the provided text.

User Stefano Fratini
by
6.9k points