Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
gegl
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
129
Issues
129
List
Boards
Labels
Service Desk
Milestones
Merge Requests
10
Merge Requests
10
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
GNOME
gegl
Commits
67faed2b
Commit
67faed2b
authored
Dec 28, 2014
by
Jon Nordby
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
meta-json: Add initial test case
parent
d93f6b94
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
5 deletions
+35
-5
operations/json/dropshadow2.fbp
operations/json/dropshadow2.fbp
+8
-2
operations/json/dropshadow2.json
operations/json/dropshadow2.json
+14
-3
tests/compositions/dropshadow-json.xml
tests/compositions/dropshadow-json.xml
+13
-0
No files found.
operations/json/dropshadow2.fbp
View file @
67faed2b
...
...
@@ -2,7 +2,9 @@ INPORT=translate.X:X
INPORT=translate.Y:X
INPORT=color.VALUE:COLOR
INPORT=blur.STD_DEV_X:RADIUS
INPORT=input.OUTPUT:INPUT
INPORT=opacity.VALUE:OPACITY
INPORT=input.INPUT:INPUT
OUTPORT=over.OUTPUT:OUTPUT
# FIXME: multiple export mapping? INPORT=blur.STD-DEV-Y:RADIUS
...
...
@@ -13,4 +15,8 @@ input(gegl/noop) OUTPUT -> INPUT darken(gegl/src:in) OUTPUT -> INPUT blur(gegl/g
input OUTPUT -> AUX over
color OUTPUT -> AUX darken
'rgb(0.0,0.0,0.0)' -> VALUE color
'rgba(0.0, 0.0, 0.0, 0.0)' -> VALUE color
'0.5' -> VALUE opacity
'10' -> STD_DEV_Y blur
'20' -> Y translate
'20' -> X translate
operations/json/dropshadow2.json
View file @
67faed2b
...
...
@@ -97,11 +97,18 @@
}
},
{
"data"
:
"rgb
(0.0,0.0,
0.0)"
,
"data"
:
"rgb
a(0.0, 0.0, 0.0,
0.0)"
,
"tgt"
:
{
"process"
:
"color"
,
"port"
:
"value"
}
},
{
"data"
:
"0.5"
,
"tgt"
:
{
"process"
:
"opacity"
,
"port"
:
"value"
}
}
],
"inports"
:
{
...
...
@@ -115,11 +122,15 @@
},
"radius"
:
{
"process"
:
"blur"
,
"port"
:
"std_dev_x"
"port"
:
"std-dev-x"
},
"opacity"
:
{
"process"
:
"opacity"
,
"port"
:
"value"
},
"input"
:
{
"process"
:
"input"
,
"port"
:
"
out
put"
"port"
:
"
in
put"
}
},
"outports"
:
{
...
...
tests/compositions/dropshadow-json.xml
0 → 100644
View file @
67faed2b
<?xml version='1.0' encoding='UTF-8'?>
<gegl>
<node
operation=
'gegl:dropshadow2'
>
<params>
<param
name=
'radius'
>
10
</param>
</params>
</node>
<node
operation=
'gegl:load'
>
<params>
<param
name=
'path'
>
data/car-stack.png
</param>
</params>
</node>
</gegl>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment