Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allows user to define new colors using RGB values.
- Loading branch information
Showing
3 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Source: Jim Barry, Geonet forum | ||
# Url: https://community.esri.com/t5/developers-questions/please-restore-arcscripts/ | ||
# Retrieved_by: Matt.Wilkie@yukon.ca | ||
# Retrieved_date: 2021-03-11 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
11088,Define RGB Color,ArcView GIS,Avenue,AS11088.zip,AS11088.zip,9-Apr-98,18-Mar-99,Public Domain,589,4876,,,This script allows you to define colors using RGB values instead of using the HSV model. The source is included in a text file.,No,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
' ************************************************************************* | ||
' DefineRGB | ||
' | ||
' Allows user to define new colors using RGB values. | ||
' | ||
' This script prompts the user for RGB values and then creates a new | ||
' color using these values. The color is then added to the color palette. | ||
' | ||
' Created: Mark Carniello, 24.1.1996 | ||
' | ||
' ************************************************************************* | ||
|
||
|
||
|
||
|
||
|
||
mySymWin = av.GetSymbolWin | ||
mySymWin.Open | ||
mySymWin.SetPanel(#SYMBOLWIN_PANEL_COLOR) | ||
myPalette = mySymWin.GetPalette | ||
myPaletteList = myPalette.GetList(#PALETTE_LIST_COLOR) | ||
|
||
MyStringValueList = MsgBox.MultiInput("Please enter RGB Values:","GBRMPA",{"red","green","blue"},{"255","255","255"}) | ||
if (MyStringValueList.Count = 0) then | ||
exit | ||
end | ||
MyValueList = List.Make | ||
MyValueList.Add(MyStringValueList.Get(0).AsNumber) | ||
MyValueList.Add(MyStringValueList.Get(1).AsNumber) | ||
MyValueList.Add(MyStringValueList.Get(2).AsNumber) | ||
myColor = Color.Make | ||
myColor.SetRGBList(MyValueList) | ||
|
||
myPaletteList.Add(myColor) | ||
mySymWin.RefreshPalette(#PALETTE_LIST_COLOR) | ||
|
||
|