+ 2

What are "nested lists or 2d grind or matrices"used for?

I know how to code it but I can't find a real-life example for it

19th Aug 2023, 6:01 PM
ZIZO Abd alkawy
5 ответов
+ 3
Yes, as you said but this is one screen or one picture, what I describe. For example you want to overwork an 2D digital image, a foto you made with smartphone, with your code. There are few thousand pixels. And you want to make it darker. The code has to take each pixel and make something with it. A matrix is here very helpful.
21st Aug 2023, 7:39 PM
JaScript
JaScript - avatar
+ 8
This is real live. Imagine a picture. This is something what is 3d grid, a matrix, which has position coordinates x, y, and a point with a color there in this place and these a few thousand times.
19th Aug 2023, 6:20 PM
JaScript
JaScript - avatar
+ 3
ZIZO Abd alkawy happy coding!
30th Aug 2023, 7:15 AM
JaScript
JaScript - avatar
+ 1
JaScript I don't think I really get it but Is it like pixels in screens or something I mean coordinates for every pixel x and y is it like this Or Same screen1 but thousands of screens behind and beside and in front of the screen1 Which on of those
21st Aug 2023, 5:04 PM
ZIZO Abd alkawy
+ 1
JaScript Oh I think I can understand it now Matrix is like the whole community or every single thing whatever it was pixels or numbers or words Thank for help
29th Aug 2023, 8:25 PM
ZIZO Abd alkawy