SlideShare a Scribd company logo
1 of 18
Download to read offline
Color Pallete (Visual Basic Assignment)
Presented By
Supriya Deshmukh
Bachelors of Computer Application
Dezyne E’cole College
Project report on
Color Pallete
Submitted To
Dezyne E’cole College
Towards
The Partial Fulfillment
Of 2018 year, Bachelor Of Computer Application, 3nd
year
By
Supriya Deshmukh
Dezyne E’cole College
106/10, Civil Line Ajmer
www.Dezyneecole.com
Acknowledgment
I Am Supriya Deshmukh Student of Bachelor Of Computer Application Dezyne
E’cole College Would Like To Express My Gratitude to Each And Every Person Who
Has Contributed In Stimulating Suggestions And Encouragement Which Really
Helped Me to Coordinate My Project. I Also Thank Dezyne E’cole College Who
Provided Insight And Expertise That Greatly Assisted the Project. Also, a Special
Thanks To My Teachers, Parents and Colleagues Who Have Supported Me At Every
Step. Not To Forget, the Almighty Who Blessed Me With Good Health Because of
Which I Worked More Efficiently And Better.
In the following pages I am showcasing my work:
Color pallete
Code
Dim r, g, b As Integer
Private Sub VScroll1_Change()
Dim a(3), n, i, j, k, m, t As Integer
r = VScroll1.Value
g = VScroll2.Value
b = VScroll3.Value
Form1.BackColor = RGB(r, g, b)
Text1.Text = r
i = 0
n = Val(VScroll1.Value)
While (n > 0)
m = n Mod 16
a(i) = m
n = n  16
i = i + 1
Wend
k = 0
If (a(1) = 10) Then
k = "A"
ElseIf (a(1) = 11) Then
k = "B"
ElseIf (a(1) = 12) Then
k = "C"
ElseIf (a(1) = 13) Then
k = "D"
ElseIf (a(1) = 14) Then
k = "E"
ElseIf (a(1) = 15) Then
k = "F"
Else
k = a(1)
End If
If (a(0) = 10) Then
j = "A"
ElseIf (a(0) = 11) Then
j = "B"
ElseIf (a(0) = 12) Then
j = "C"
ElseIf (a(0) = 13) Then
j = "D"
ElseIf (a(0) = 14) Then
j = "E"
ElseIf (a(0) = 15) Then
j = "F"
Else
j = a(0)
End If
Text4.Text = k & j
Text7.Text = "#" & Text4.Text + Text5.Text + Text6.Text
End Sub
Private Sub VScroll1_Scroll()
Dim a(3), n, i, j, k, t, m As Integer
r = VScroll1.Value
g = VScroll2.Value
b = VScroll3.Value
Form1.BackColor = RGB(r, g, b)
Text1.Text = r
i = 0
n = Val(VScroll1.Value)
While (n > 0)
m = n Mod 16
a(i) = m
n = n  16
i = i + 1
Wend
k = 0
If (a(1) = 10) Then
k = "A"
ElseIf (a(1) = 11) Then
k = "B"
ElseIf (a(1) = 12) Then
k = "C"
ElseIf (a(1) = 13) Then
k = "D"
ElseIf (a(1) = 14) Then
k = "E"
ElseIf (a(1) = 15) Then
k = "F"
Else
k = a(1)
End If
If (a(0) = 10) Then
j = "A"
ElseIf (a(0) = 11) Then
j = "B"
ElseIf (a(0) = 12) Then
j = "C"
ElseIf (a(0) = 13) Then
j = "D"
ElseIf (a(0) = 14) Then
j = "E"
ElseIf (a(0) = 15) Then
j = "F"
Else
j = a(0)
End If
Text4.Text = k & j
Text7.Text = "#" & Text4.Text + Text5.Text + Text6.Text
End Sub
Private Sub VScroll2_Change()
Dim a(3), n, i, j, k, t As Integer
r = VScroll1.Value
g = VScroll2.Value
b = VScroll3.Value
Form1.BackColor = RGB(r, g, b)
Text2.Text = g
i = 0
n = Val(VScroll2.Value)
While (n > 0)
m = n Mod 16
a(i) = m
n = n  16
i = i + 1
Wend
k = 0
If (a(1) = 10) Then
k = "A"
ElseIf (a(1) = 11) Then
k = "B"
ElseIf (a(1) = 12) Then
k = "C"
ElseIf (a(1) = 13) Then
k = "D"
ElseIf (a(1) = 14) Then
k = "E"
ElseIf (a(1) = 15) Then
k = "F"
Else
k = a(1)
End If
If (a(0) = 10) Then
j = "A"
ElseIf (a(0) = 11) Then
j = "B"
ElseIf (a(0) = 12) Then
j = "C"
ElseIf (a(0) = 13) Then
j = "D"
ElseIf (a(0) = 14) Then
j = "E"
ElseIf (a(0) = 15) Then
j = "F"
Else
j = a(0)
End If
Text5.Text = k & j
Text7.Text = "#" & Text4.Text + Text5.Text + Text6.Text
End Sub
Private Sub VScroll2_Scroll()
Dim a(3), n, i, j, k, t As Integer
r = VScroll1.Value
g = VScroll2.Value
b = VScroll3.Value
Form1.BackColor = RGB(r, g, b)
Text2.Text = g
i = 0
n = Val(VScroll2.Value)
While (n > 0)
m = n Mod 16
a(i) = m
n = n  16
i = i + 1
Wend
k = 0
If (a(1) = 10) Then
k = "A"
ElseIf (a(1) = 11) Then
k = "B"
ElseIf (a(1) = 12) Then
k = "C"
ElseIf (a(1) = 13) Then
k = "D"
ElseIf (a(1) = 14) Then
k = "E"
ElseIf (a(1) = 15) Then
k = "F"
Else
k = a(1)
End If
If (a(0) = 10) Then
j = "A"
ElseIf (a(0) = 11) Then
j = "B"
ElseIf (a(0) = 12) Then
j = "C"
ElseIf (a(0) = 13) Then
j = "D"
ElseIf (a(0) = 14) Then
j = "E"
ElseIf (a(0) = 15) Then
j = "F"
Else
j = a(0)
End If
Text5.Text = k & j
Text7.Text = "#" & Text4.Text + Text5.Text + Text6.Text
End Sub
Private Sub VScroll3_Change()
Dim a(3), n, i, j, k, t As Integer
r = VScroll1.Value
g = VScroll2.Value
b = VScroll3.Value
Form1.BackColor = RGB(r, g, b)
Text3.Text = b
i = 0
n = Val(VScroll3.Value)
While (n > 0)
m = n Mod 16
a(i) = m
n = n  16
i = i + 1
Wend
k = 0
If (a(1) = 10) Then
k = "A"
ElseIf (a(1) = 11) Then
k = "B"
ElseIf (a(1) = 12) Then
k = "C"
ElseIf (a(1) = 13) Then
k = "D"
ElseIf (a(1) = 14) Then
k = "E"
ElseIf (a(1) = 15) Then
k = "F"
Else
k = a(1)
End If
If (a(0) = 10) Then
j = "A"
ElseIf (a(0) = 11) Then
j = "B"
ElseIf (a(0) = 12) Then
j = "C"
ElseIf (a(0) = 13) Then
j = "D"
ElseIf (a(0) = 14) Then
j = "E"
ElseIf (a(0) = 15) Then
j = "F"
Else
j = a(0)
End If
Text6.Text = k & j
Text7.Text = "#" & Text4.Text + Text5.Text + Text6.Text
End Sub
Private Sub VScroll3_Scroll()
Dim a(3), n, i, j, k, t As Integer
r = VScroll1.Value
g = VScroll2.Value
b = VScroll3.Value
Form1.BackColor = RGB(r, g, b)
Text3.Text = b
i = 0
n = Val(VScroll3.Value)
While (n > 0)
m = n Mod 16
a(i) = m
n = n  16
i = i + 1
Wend
k = 0
If (a(1) = 10) Then
k = "A"
ElseIf (a(1) = 11) Then
k = "B"
ElseIf (a(1) = 12) Then
k = "C"
ElseIf (a(1) = 13) Then
k = "D"
ElseIf (a(1) = 14) Then
k = "E"
ElseIf (a(1) = 15) Then
k = "F"
Else
k = a(1)
End If
If (a(0) = 10) Then
j = "A"
ElseIf (a(0) = 11) Then
j = "B"
ElseIf (a(0) = 12) Then
j = "C"
ElseIf (a(0) = 13) Then
j = "D"
ElseIf (a(0) = 14) Then
j = "E"
ElseIf (a(0) = 15) Then
j = "F"
Else
j = a(0)
End If
Text6.Text = k & j
Text7.Text = "#" & Text4.Text + Text5.Text + Text6.Text
End Sub
Thank you
Presented By
Supriya Deshmukh
Bachelor Of Computer Application, 3rd
year
Dezyne E’cole College

More Related Content

Similar to Color pallete, Supriya Deshmukh, BCA 3rd year, Dezyne E'cole College (6)

Scope Graphs: A fresh look at name binding in programming languages
Scope Graphs: A fresh look at name binding in programming languagesScope Graphs: A fresh look at name binding in programming languages
Scope Graphs: A fresh look at name binding in programming languages
 
Declarative Language Definition
Declarative Language DefinitionDeclarative Language Definition
Declarative Language Definition
 
Crystal presentation in NY
Crystal presentation in NYCrystal presentation in NY
Crystal presentation in NY
 
Monadologie
MonadologieMonadologie
Monadologie
 
Retos de Programación en Python
Retos de Programación en PythonRetos de Programación en Python
Retos de Programación en Python
 
Scala Functional Patterns
Scala Functional PatternsScala Functional Patterns
Scala Functional Patterns
 

Recently uploaded

The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 

Recently uploaded (20)

Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfFICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
latest AZ-104 Exam Questions and Answers
latest AZ-104 Exam Questions and Answerslatest AZ-104 Exam Questions and Answers
latest AZ-104 Exam Questions and Answers
 
Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111
 
How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Tatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsTatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf arts
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 

Color pallete, Supriya Deshmukh, BCA 3rd year, Dezyne E'cole College

  • 1. Color Pallete (Visual Basic Assignment) Presented By Supriya Deshmukh Bachelors of Computer Application Dezyne E’cole College
  • 2. Project report on Color Pallete Submitted To Dezyne E’cole College Towards The Partial Fulfillment Of 2018 year, Bachelor Of Computer Application, 3nd year By Supriya Deshmukh Dezyne E’cole College 106/10, Civil Line Ajmer www.Dezyneecole.com
  • 3. Acknowledgment I Am Supriya Deshmukh Student of Bachelor Of Computer Application Dezyne E’cole College Would Like To Express My Gratitude to Each And Every Person Who Has Contributed In Stimulating Suggestions And Encouragement Which Really Helped Me to Coordinate My Project. I Also Thank Dezyne E’cole College Who Provided Insight And Expertise That Greatly Assisted the Project. Also, a Special Thanks To My Teachers, Parents and Colleagues Who Have Supported Me At Every Step. Not To Forget, the Almighty Who Blessed Me With Good Health Because of Which I Worked More Efficiently And Better.
  • 4. In the following pages I am showcasing my work: Color pallete
  • 5. Code Dim r, g, b As Integer Private Sub VScroll1_Change() Dim a(3), n, i, j, k, m, t As Integer r = VScroll1.Value g = VScroll2.Value b = VScroll3.Value Form1.BackColor = RGB(r, g, b) Text1.Text = r i = 0 n = Val(VScroll1.Value) While (n > 0) m = n Mod 16 a(i) = m n = n 16 i = i + 1 Wend k = 0 If (a(1) = 10) Then k = "A" ElseIf (a(1) = 11) Then k = "B"
  • 6. ElseIf (a(1) = 12) Then k = "C" ElseIf (a(1) = 13) Then k = "D" ElseIf (a(1) = 14) Then k = "E" ElseIf (a(1) = 15) Then k = "F" Else k = a(1) End If If (a(0) = 10) Then j = "A" ElseIf (a(0) = 11) Then j = "B" ElseIf (a(0) = 12) Then j = "C" ElseIf (a(0) = 13) Then j = "D" ElseIf (a(0) = 14) Then j = "E" ElseIf (a(0) = 15) Then j = "F" Else
  • 7. j = a(0) End If Text4.Text = k & j Text7.Text = "#" & Text4.Text + Text5.Text + Text6.Text End Sub Private Sub VScroll1_Scroll() Dim a(3), n, i, j, k, t, m As Integer r = VScroll1.Value g = VScroll2.Value b = VScroll3.Value Form1.BackColor = RGB(r, g, b) Text1.Text = r i = 0 n = Val(VScroll1.Value) While (n > 0) m = n Mod 16 a(i) = m n = n 16 i = i + 1 Wend k = 0 If (a(1) = 10) Then k = "A" ElseIf (a(1) = 11) Then
  • 8. k = "B" ElseIf (a(1) = 12) Then k = "C" ElseIf (a(1) = 13) Then k = "D" ElseIf (a(1) = 14) Then k = "E" ElseIf (a(1) = 15) Then k = "F" Else k = a(1) End If If (a(0) = 10) Then j = "A" ElseIf (a(0) = 11) Then j = "B" ElseIf (a(0) = 12) Then j = "C" ElseIf (a(0) = 13) Then j = "D" ElseIf (a(0) = 14) Then j = "E" ElseIf (a(0) = 15) Then j = "F"
  • 9. Else j = a(0) End If Text4.Text = k & j Text7.Text = "#" & Text4.Text + Text5.Text + Text6.Text End Sub Private Sub VScroll2_Change() Dim a(3), n, i, j, k, t As Integer r = VScroll1.Value g = VScroll2.Value b = VScroll3.Value Form1.BackColor = RGB(r, g, b) Text2.Text = g i = 0 n = Val(VScroll2.Value) While (n > 0) m = n Mod 16 a(i) = m n = n 16 i = i + 1 Wend k = 0 If (a(1) = 10) Then k = "A"
  • 10. ElseIf (a(1) = 11) Then k = "B" ElseIf (a(1) = 12) Then k = "C" ElseIf (a(1) = 13) Then k = "D" ElseIf (a(1) = 14) Then k = "E" ElseIf (a(1) = 15) Then k = "F" Else k = a(1) End If If (a(0) = 10) Then j = "A" ElseIf (a(0) = 11) Then j = "B" ElseIf (a(0) = 12) Then j = "C" ElseIf (a(0) = 13) Then j = "D" ElseIf (a(0) = 14) Then j = "E" ElseIf (a(0) = 15) Then
  • 11. j = "F" Else j = a(0) End If Text5.Text = k & j Text7.Text = "#" & Text4.Text + Text5.Text + Text6.Text End Sub Private Sub VScroll2_Scroll() Dim a(3), n, i, j, k, t As Integer r = VScroll1.Value g = VScroll2.Value b = VScroll3.Value Form1.BackColor = RGB(r, g, b) Text2.Text = g i = 0 n = Val(VScroll2.Value) While (n > 0) m = n Mod 16 a(i) = m n = n 16 i = i + 1 Wend k = 0 If (a(1) = 10) Then
  • 12. k = "A" ElseIf (a(1) = 11) Then k = "B" ElseIf (a(1) = 12) Then k = "C" ElseIf (a(1) = 13) Then k = "D" ElseIf (a(1) = 14) Then k = "E" ElseIf (a(1) = 15) Then k = "F" Else k = a(1) End If If (a(0) = 10) Then j = "A" ElseIf (a(0) = 11) Then j = "B" ElseIf (a(0) = 12) Then j = "C" ElseIf (a(0) = 13) Then j = "D" ElseIf (a(0) = 14) Then j = "E"
  • 13. ElseIf (a(0) = 15) Then j = "F" Else j = a(0) End If Text5.Text = k & j Text7.Text = "#" & Text4.Text + Text5.Text + Text6.Text End Sub Private Sub VScroll3_Change() Dim a(3), n, i, j, k, t As Integer r = VScroll1.Value g = VScroll2.Value b = VScroll3.Value Form1.BackColor = RGB(r, g, b) Text3.Text = b i = 0 n = Val(VScroll3.Value) While (n > 0) m = n Mod 16 a(i) = m n = n 16 i = i + 1 Wend k = 0
  • 14. If (a(1) = 10) Then k = "A" ElseIf (a(1) = 11) Then k = "B" ElseIf (a(1) = 12) Then k = "C" ElseIf (a(1) = 13) Then k = "D" ElseIf (a(1) = 14) Then k = "E" ElseIf (a(1) = 15) Then k = "F" Else k = a(1) End If If (a(0) = 10) Then j = "A" ElseIf (a(0) = 11) Then j = "B" ElseIf (a(0) = 12) Then j = "C" ElseIf (a(0) = 13) Then j = "D" ElseIf (a(0) = 14) Then
  • 15. j = "E" ElseIf (a(0) = 15) Then j = "F" Else j = a(0) End If Text6.Text = k & j Text7.Text = "#" & Text4.Text + Text5.Text + Text6.Text End Sub Private Sub VScroll3_Scroll() Dim a(3), n, i, j, k, t As Integer r = VScroll1.Value g = VScroll2.Value b = VScroll3.Value Form1.BackColor = RGB(r, g, b) Text3.Text = b i = 0 n = Val(VScroll3.Value) While (n > 0) m = n Mod 16 a(i) = m n = n 16 i = i + 1 Wend
  • 16. k = 0 If (a(1) = 10) Then k = "A" ElseIf (a(1) = 11) Then k = "B" ElseIf (a(1) = 12) Then k = "C" ElseIf (a(1) = 13) Then k = "D" ElseIf (a(1) = 14) Then k = "E" ElseIf (a(1) = 15) Then k = "F" Else k = a(1) End If If (a(0) = 10) Then j = "A" ElseIf (a(0) = 11) Then j = "B" ElseIf (a(0) = 12) Then j = "C" ElseIf (a(0) = 13) Then j = "D"
  • 17. ElseIf (a(0) = 14) Then j = "E" ElseIf (a(0) = 15) Then j = "F" Else j = a(0) End If Text6.Text = k & j Text7.Text = "#" & Text4.Text + Text5.Text + Text6.Text End Sub
  • 18. Thank you Presented By Supriya Deshmukh Bachelor Of Computer Application, 3rd year Dezyne E’cole College