Computer Graphics Concepts: CMYK, RGB, Buffering, and More
CMYK and RGB Color Models
CMYK subtracts from white, K “black”
RGB Additive color model – adding ‘primary’ colors to black
Buffering and Image Processing
Double buffering is having two buffers in video memory (front and back buffer) for swapping between them, solving any flickering or partially drawn frames problems
Sobel convolution Apply a kernel to every pixel in image
Gradient of a point Directional change in intensity of color of image
Lines and Curves
Parametric line P(t) = P0 + t(P1-P0)
Read MoreFamily Interactions and Social Commentary in 19th Century Russia
Family Interactions and Social Commentary
When Pierre and his wife entered the drawing room, the countess was in one of her customary states in which she needed the mental exertion of playing patience. Though by force of habit she greeted him with the words she always used when Pierre or her son returned after an absence: “High time, my dear, high time! We were all weary of waiting for you. Well, thank God!” and received her presents with another customary remark: “It’s not the gift that’s
Read MoreJava Code Examples: Prime Numbers, Array Rotation, Tree Depth
Finding Special Prime Numbers in Java
This code finds two-digit integers where the digit ‘3’ is the most frequent digit. For example, the output will be [13, 23, 31, 37, 43, 53, 73, 83].
“`java import java.util.ArrayList; import java.util.List; import java.util.Scanner;
public class SpecialPrimeFinder {
// Method to get special prime numbers private List getSpecialPrimeNo(int digits, int frequentNo) { List resLst = new ArrayList<>(); int lowerBound = (int) Math.pow(10, digits – 1); int upperBound
Read MoreData Visualization Techniques with Diamonds Dataset in R
library(tidyverse)
Visualization of Distributions
Diamonds Dataset
str(diamonds)
summary(diamonds)
ggplot(data = diamonds) + geom_bar(mapping = aes(x = cut))
diamonds %>% count(cut)
ggplot(data = diamonds) + geom_histogram(mapping = aes(x = carat), binwidth = 0.5)
diamonds %>% count(cut_width(carat, 0.5))
smaller <- diamonds %>% filter(carat < 3)
ggplot(data = smaller, mapping = aes(x = carat)) + geom_histogram(binwidth = 0.1)
ggplot(data = smaller, mapping = aes(x = carat, color = cut)) + geom_
Network Devices: Repeaters, Hubs, Routers, Switches, Bridges
Repeaters
A repeater is an electronic device that operates on the physical layer of the OSI model. An amplifier cannot differentiate between the original signal and a noise signal. Repeaters do not amplify the signal; they regenerate it. When a repeater receives a signal affected by noise, it creates a copy, bit by bit, restoring it to its original strength.
Advantages of Repeaters
- Extend the physical distance of a network.
- Do not seriously affect network performance.
Disadvantages of Repeaters
- Cannot