Showing posts with label Adventure. Show all posts
Showing posts with label Adventure. Show all posts

Thursday, October 15, 2020

GreyScale adventure with cSharp - 201015Th

  Scale adventure with c#  
.
Version: 201015Th
.
Although I had some knowledge about Grey scale colors for decades but was not very sure about them. For example following questions were comming in my mind for sometime:
  1. What is exact definition of Grey scale colors?
  2. How they are produced on digital computers?
  3. What is count of Grey scale colors?
.
For getting answer for my above mentioned questions, a few days ago, I searched on net about Grey scale colors. To see all colors which fell in Grey scale category I decided to generate all colors which fell in Grey scale category. After some planning I started to write an application in C# for generating all Grey scale colors and on completion of application I also enjoyed it's output.
.
"All Grey scale colors were in one place."
.
All colors were either Tints of Black color or Shades of White color. On the start of Grey scale color list was Black color and on the end of Grey scale list was White color and in between were shades/tints of White/Black color. In other words all colors were Shades or Tints of Grey, starting from Black and ending on White.
.
There were total of 256 colors in Grey scale colors. Each of them was produced with mixing all three primary colors (Red, Green and Blue) in same value of their intensity. For example first color (black) was produced by mixing red=0, green=0, blue=0 and last color (white) was produced by mixing red=255, green=255, blue=255 Colors. Colors in between were produced by mixing primary colors together with their intensities ranging from 1 to 254.
.
Application's UI (User Interface) is simple and easy to understand. Colors in Grey scale category are displayed in a grid of size 16*16. User can see information about color displayed in any cell/box in grid by moving mouse pointer over them. Information of cell under mouse is displayed on bottom of application form.
.
Information displayed about Grid cell under mouse pointer are:
  1. Cell (Cell number. It starts with 0).
  2. Row (Row number. It starts with 0).
  3. Col (Column number. It starts with 0).
  4. Color (Color preview).
  5. Hex (Hex of color previewed).
  6. RGB (RGB of color previewed).
.
Following are the srreen shots of the application I discused above.
.

.
Application on start looks like in the following image:
.
.
.
Application looks like in the following image when mouse is positioned over color cell of the grid:
.
.
.

.
Colors used in this post:
Border color rgb(80, 80, 80) #505050
Background color rgb(220, 220, 220) #dcdcdc
.

.
If there are any mistakes in this post then I will remove them whenever I will know about them.
.


Wednesday, May 13, 2020

Some moments with butterflies - 200514Th

  Some moments with butterflies  
.
(Photos taken by me on 2020 May 14 Thu and 31 Sun)
Version: 200514Th
.
One day, while observing the wild plants and grass growing in the empty plot beside our home, I noticed a yellowish-colored little butterfly. As I wandered around randomly, admiring the plants and lost in thought, the butterfly kept fluttering near my feet, following my every move. Suddenly, an idea struck me: to catch the butterfly and show it to my niece. I quickly scanned my surroundings, searching for something to catch it with, and spotted a clean, empty plastic box.
.
I grabbed the plastic box and began chasing the quick and clever butterfly. After a brief pursuit, I finally managed to catch it. Once I had captured the delicate creature, I quietly entered my home and transferred it to a larger, more attractive plastic box and made airholes in the lid for ventilation.
.
I wanted to keep this adventure a secret, so I could surprise my niece with the captured butterfly. When I finally revealed it to her, she was utterly astonished and delighted beyond words. She enthusiastically played with the butterfly, gently moving the box up and down. While playing with the butterfly she asked about how to feed and hydrate the butterfly. So, I explained that butterflies sip nectar from flowers and drink water, and then I placed a variety of fresh flowers in the box and added a small dish of fresh water for the butterfly to enjoy. Soon after, she asked me to set the butterfly free. I had caught the butterfly in the morning, and by evening, I released it back into our lawn, where it flew away freely.
.
Following are two of many photos I took of that above mentioned little butterfly.
.

.
.
.
.

.
A few days after releasing the little butterfly, I was sitting in our lawn one evening when I spotted a new butterfly flitting over the flowers of various plants. Perhaps inspired by my previous adventure, I swiftly grabbed a plastic box and cautiously approached the butterfly, moving slowly and deliberately. After careful calculation, I made a precise grab and captured the butterfly. This time, the butterfly was slightly larger and had a darker hue.
.
Once again, I surprised my niece with the new butterfly, and she was thrilled to see a different species. She delightedly played with it, mesmerized by its flight as it fluttered around the plastic box. After some hours, at my niece's request, I released the butterfly back into our lawn, returning it to the exact spot where I had captured it just hours earlier.
.
Following are three of many photos I took of that above mentioned butterfly.
.

.
.
.
.
.

.
I found these images in HDD of my PC already edited so I decided to upload them on different sites.
.
Colors used in this post
Border color rgb(128,  96,   0) #806000
Background color rgb(255, 210, 77) #FFD24D
.

.
If there are any mistakes in this post then I will remove them whenever I will know about them.
.


Thursday, February 20, 2020

Adventure at Home while Alone - 2020Feb18Tue

  Adventure at Home while Alone  
.
Session: 200218Tu
.
Previous session: 2016Aug11Thu
.
Today during watering my home's lawn I observed that switchboard and plug via which electricity was going to motor was not looking in good condition. There was rust like mark on base of the plug and switch button of the switchboard was also a little hard to operate. During every watering session I need to close and open motor switch for moving water pipe from one place to another place at least one time. Today on that occasion when I tried to OFF the switch button I found it stuck. I was surprised and a little panicked. Then I applied a little more power and button moved and motor stopped. After moving water pipe to it's next location when I tried to ON the switch button I found it stuck again and this time again I applied some force to turn it on. By applying force I found that button become loose and started to on, off on it's own. Then I tried and set it to position of ON. At end of session when I switched off the motor I found switch button merely attached to it's proper position.
.
Now I started thinking about replacing switchboard and plug for water motor myself. After some thinking about timing to do this work at around PST 11:30 PM I decided to do it right then. Therefore I immediately went to shop purchased one switchboard and one plug for Rs 150 and came back. On return I went to my room, collected tools needed for the task and came outside to the place of work. Then I arranged all tools and switchboard and plug together and took some photos of them.
.

.
. .
. .
.
. .
.

.
After that I tried to remove plug from switchboard and found that it was almost jammed there. After some effort I was able to remove plug from switch board. Because of some malfunction plug was heated and melted and fused with switchboard. Again I took some photos of switchboard and plug. During opening and removing switchboard and plug I made sure that I understand circuit.
.

.
.
. .
. .
. .
. .
. .
. .
. .
. .
. .
. .
.

.
Then I attached wires from mains to switchboard and wires from motor to plug. It took me a lot of time in fixing wires to switchboard. Red wire in the following set is the one I used for internal connection in switchboard. I took some more photos of current status. I forgot to take photos of switchboard after attaching internal wire and main wires to it. I used back cover of my mobile for making red wire more visible in photo.
.

.
. .
. .
.

.
During attaching switchboard to it's place I found that screws were shorter and thinner then required and so were loose to fit. Therefore I went to my room and brought back box of screws and found a screw of right size and used it for fixing switchboard to it's place. Then I fixed plug in switchboard. Now I took some more photos of finished work.
.

.
. .
. .
. .
.
.

.
But because by now electricity in our area was no longer available, because of un-wanted load shading, so I was not able to test my experiment. Therefore this adventure ended a little earlier on around PST 01:41 PM. In the evening when electricity came back I tested newly installed switch and plug and they worked correctly. I let motor run until our overhead water tank becomes full.
.

.
I used following chair during work for sitting. I did this mostly for avoiding sitting on floor of car poarch. Water motor and it's switchboard are in our car poarch.
.

.
.

.
[Ad 2020 Feb 21 Fri] Because I forgot to take photos of switchboard and plug during their test on adventure day therefore I took photos of switchboard and plug today while motor was running.
.

.
.

.
Note: Experience was again very enjoyable as ever before and it brought old memories back when I used to do these type of things often.
.