... | ... | @@ -84,10 +84,22 @@ Black lightpercent calculated with formula: |
|
|
|
|
|
In our measurements with lightPercent, we measured black to be 34, which is quite close.
|
|
|
|
|
|
We found the interval between the measurements of black and white, to have a bigger interval, than the percentages. This could be an advantage when there is a need for higher level of detail, as it provides larger resolution.
|
|
|
We found the interval between the measurements of black and white, to have a larger interval, than the percentages. This could be an advantage when there is a need for higher level of detail, as it provides larger resolution.
|
|
|
|
|
|
### Exercise 6
|
|
|
|
|
|
*In this exercise compare the drawString method using variables and using the strings directly.*
|
|
|
|
|
|
GRAF
|
|
|
|
|
|
GRAF
|
|
|
|
|
|
As the graphs show, using the strings directly requires more heap-memory. This could be because the strings are being generated each time the drawString-method is called, when the strings are used directly.
|
|
|
|
|
|
## Conclusion
|
|
|
|
|
|
The exercises were conducted as explained in the instructions.
|
|
|
|
|
|
## References
|
|
|
|
|
|
No references. |