Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from lightswitch05/master
Added gradient background ability
- Loading branch information
Showing
3 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
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
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,45 @@ | |||
module OpenFlashChart | |||
|
|||
class Inner_bg_grad | |||
def initialize() | |||
@fillType = 'linear' | |||
@colour1 = '#f8f8d8' | |||
@colour2 = '#FFFFFF' | |||
@alpha = [1,1] | |||
@ratio = [0,255] | |||
@angle = '90' | |||
end | |||
|
|||
def set_fillType(type) | |||
@fillType = type | |||
end | |||
|
|||
def set_colour1(color) | |||
@colour1 = color | |||
end | |||
|
|||
def set_colour2(color) | |||
@colour2 = color | |||
end | |||
|
|||
def set_alpha(array) | |||
@alpha = array.to_a | |||
end | |||
|
|||
def set_ratio(array) | |||
@ratio = array.to_a | |||
end | |||
|
|||
def set_angle(angle) | |||
@angle = angle.to_s | |||
end | |||
|
|||
alias_method :fillType=, :set_fillType | |||
alias_method :colour1=, :set_colour1 | |||
alias_method :colour2=, :set_colour2 | |||
alias_method :alpha=, :set_alpha | |||
alias_method :ratio=, :set_ratio | |||
alias_method :angle=, :set_angle | |||
end | |||
|
|||
end |