Ir al contenido principal

Images

Images are a sequence of rgb color values.
Each color value is assigned to a square called pixel.
Image dimensions are referred to as the resolution of the image. The higher the resolution the more detail it contains but at the same time the more storage it requires. The resolution is measured in pixels and it is expressed as widthxheight. The image on this page is a scaled up version of a 10x10 pixels image.

Comentarios

Entradas más populares de este blog

Counting in Hexadecimal

When searching for how to convert decimal numbers to hexadecimal it may seem like a daunting task. Until you learn about modulo . The easiest way for me to count in Hex is by counting in decimal and converting to Hexadecimal using the modulo operator(like a programmer). First you divide the decimal number by 16 Math.floor() the Division Result Find the Division Remainder using modulo Divide the number of your Division Result by 16 Repeat the previous steps until your Division Result is 0 For this example we will use the decimal number 53 Divide Division Result Division Remainder 53 / 16 Math.floor(3.3125) = 3 53 % 16 = 5 3 / 16 Math.floor(0.1875) = 0 3 % 16 = 3 We take the remainders going from the latest remainder to the one we got first. In this case 3 5 (the order is important). Then we use this table to translate the remainders into hex Decimal value Hex Equivalent 1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10...

Calculate Distance using Coordinates

Calculating distance between coordinates After doing little research(absolutely no research) I claimed to have created something even though all that I truly did was calculate distance using equirectangular projection(someone had already done that many years ago) . I did 3d models and tried to explain as simple as I could what I had in my brain. Then exported it as PDF and uploaded it here so that all of you can access the document. Then I downloaded a Geo JSON file from a website and used its coordinates and the previously mentioned mathematical method to generate a 2d map of the earth in svg format and hosted it on github pages . Full source code for generating the map is available here . If you happen to use dart programming language and would like to use this mathematical method check out my library so that you don't have to go through all the work all over again.

Finding the remainder of a number

The remainder is the integer "left over" after dividing one integer by another to produce an integer quotient -Wikipedia- In JavaScript(my favorite programming language) when you want to get the remainder of a certain operation you use the modulo (%) symbol. Some examples of this operation would be: 21 % 5 = 1 24 % 5 = 4 25 % 5 = 0 In the first(1) example 5 fits 4 times inside 21 and has a remainder of 1. In the second example 5 fits 4 times in 24 and has a remainder of 4. Finally, in the last example five fits 5 times inside 25 and has no remainder, thus the result is 0.