Please Subscribe My YouTube Channel

Wednesday, January 25, 2023

Program for Filter effect on images with Html and Css.

Filter effect on images like:- Hue, Saturation, Drop-shadow, Grayscale, Brightness, Etc.

Note:- When you hover the mouse on any image then it will be affected.

Program:--

<!DOCTYPE html>  
<html>  
    <head>  
        <title>Filter an image</title>  
        <style> 
h1{  
                color:red;
}  
h1{  
    animation:blinking 1.5s infinite;  
    font-size: 60px;  
}  
    @keyframes blinking{  
    0%{ color: red; }  
    47%{ color: green; }
    50%{color:blue;}  
    62%{ color: transparent; }  
    80%{ color:transparent; }  
    100%{ color:purple;}  
    }     
              
            } 
            img{display:inline-flex;}      
            #im1:hover {  
                -webkit-filter: grayscale(100%);  
            }
            #im2:hover {  
                -webkit-filter: blur(4px);              
            } 
            #im3:hover {  
                -webkit-filter: brightness(120%);  
            } 
            #im4:hover {  
                -webkit-filter: contrast(50%);      
            }
            #im5:hover {  
                -webkit-filter: drop-shadow(3px 8px 20px blue);
            } 
           #im6:hover {  
                -webkit-filter: hue-rotate(130deg);      
            }
            #im7:hover {  
                -webkit-filter: saturate(50%);      
            }
        </style> 
    </head>  
    <body>  
        <center>  
        <h1>Welcome To ITCI</h1>
        <h1>Filter effect on images</h1>   
        <img src=  
"file:///C:/Users/Satyam/Downloads/192611621_2112695282215979_4754269793175258100_n.jpg"id="im1"width="300px" height="150px" alt="filter applied" />  <br>  
        <img src=  
"file:///C:/Users/Satyam/Downloads/192611621_2112695282215979_4754269793175258100_n.jpg"id="im2"width="300px" height="150px" alt="filter applied" />
<img src=   
"file:///C:/Users/Satyam/Downloads/192611621_2112695282215979_4754269793175258100_n.jpg"id="im3"width="300px" height="150px" alt="filter applied" />
<img src=  
"file:///C:/Users/Satyam/Downloads/192611621_2112695282215979_4754269793175258100_n.jpg"id="im4"width="300px" height="150px" alt="filter applied" />
<img src=  
"file:///C:/Users/Satyam/Downloads/192611621_2112695282215979_4754269793175258100_n.jpg"id="im5"width="300px" height="150px" alt="filter applied" />
<img src=  
"file:///C:/Users/Satyam/Downloads/192611621_2112695282215979_4754269793175258100_n.jpg"id="im6"width="300px" height="150px" alt="filter applied" />
<img src=  
"file:///C:/Users/Satyam/Downloads/192611621_2112695282215979_4754269793175258100_n.jpg"id="im7"width="300px" height="150px" alt="filter applied" />
        </center>  
    </body>  
</html>  



Tuesday, January 24, 2023

Python program for swapping two numbers:-


Python program for swapping two numbers:-


P = int( input("Please enter value for P: "))  

Q = int( input("Please enter value for Q: "))  


# To Swap the values of two variables  

P, Q = Q, P  

   

print ("The Value of P is after swapping: ", P)  

print ("The Value of Q is after swapping: ", Q)  


Python Calender Program  Python odd and even program


 

Python program for display calendar:-

Python program for display calendar:- 



# First import the calendar module  
import calendar  
# ask of month and year  
yy = int(input("Enter year: "))  
mm = int(input("Enter month: "))  

# display the calendar  
print(calendar.month(yy,mm))

#output:-

'''Enter year: 2021
Enter month: 02
   February 2021
Mo Tu We Th Fr Sa Su
 1  2  3  4  5  6  7
 8  9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28'''