compositor_node 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +7 -2
- data/Rakefile +1 -4
- data/VERSION +1 -1
- data/compositor_node.gemspec +8 -13
- metadata +76 -93
- data/README +0 -29
data/README.rdoc
CHANGED
@@ -1,6 +1,11 @@
|
|
1
|
-
=
|
1
|
+
= Compositor Node
|
2
2
|
|
3
|
-
|
3
|
+
(This is an old and unloved gem - use at your risk!)
|
4
|
+
|
5
|
+
Node based composition:
|
6
|
+
http://en.wikipedia.org/wiki/Digital_compositing#Node-based_and_layer-based_compositing
|
7
|
+
|
8
|
+
The intention of this library is to make it easy to build up a structure of nodes which will then be output to a flat file. Imagine using this library as part of a web-app that makes it easy to manipulate images in a structured, visual way (without say, Photoshop).
|
4
9
|
|
5
10
|
== Contributing to compositor_node
|
6
11
|
|
data/Rakefile
CHANGED
@@ -18,10 +18,7 @@ Jeweler::Tasks.new do |gem|
|
|
18
18
|
gem.homepage = "http://github.com/dies-el/compositor_node"
|
19
19
|
gem.license = "MIT"
|
20
20
|
gem.summary = %Q{Ruby library that provides a framework for node-based composition of images.}
|
21
|
-
gem.description = %Q{
|
22
|
-
http://en.wikipedia.org/wiki/Digital_compositing#Node-based_and_layer-based_compositing
|
23
|
-
|
24
|
-
The intention of this library is to make it easy to build up a structure of nodes which will then be output to a flat file. Imagine using this library as part of a web-app that makes it easy to manipulate images in a structured, visual way (without say, Photoshop).}
|
21
|
+
gem.description = %Q{The intention of this library is to make it easy to build up a structure of nodes which will then be output to a flat file. Imagine using this library as part of a web-app that makes it easy to manipulate images in a structured, visual way (without say, Photoshop).}
|
25
22
|
gem.email = "andrew@desto.net"
|
26
23
|
gem.authors = ["Andrew Donaldson"]
|
27
24
|
# dependencies defined in Gemfile
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.1
|
data/compositor_node.gemspec
CHANGED
@@ -4,20 +4,16 @@
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
|
-
s.name =
|
8
|
-
s.version = "0.1.
|
7
|
+
s.name = "compositor_node"
|
8
|
+
s.version = "0.1.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Andrew Donaldson"]
|
12
|
-
s.date =
|
13
|
-
s.description =
|
14
|
-
|
15
|
-
|
16
|
-
The intention of this library is to make it easy to build up a structure of nodes which will then be output to a flat file. Imagine using this library as part of a web-app that makes it easy to manipulate images in a structured, visual way (without say, Photoshop).}
|
17
|
-
s.email = %q{andrew@desto.net}
|
12
|
+
s.date = "2013-01-17"
|
13
|
+
s.description = "The intention of this library is to make it easy to build up a structure of nodes which will then be output to a flat file. Imagine using this library as part of a web-app that makes it easy to manipulate images in a structured, visual way (without say, Photoshop)."
|
14
|
+
s.email = "andrew@desto.net"
|
18
15
|
s.extra_rdoc_files = [
|
19
16
|
"LICENSE.txt",
|
20
|
-
"README",
|
21
17
|
"README.rdoc"
|
22
18
|
]
|
23
19
|
s.files = [
|
@@ -26,7 +22,6 @@ The intention of this library is to make it easy to build up a structure of node
|
|
26
22
|
"Gemfile",
|
27
23
|
"Gemfile.lock",
|
28
24
|
"LICENSE.txt",
|
29
|
-
"README",
|
30
25
|
"README.rdoc",
|
31
26
|
"Rakefile",
|
32
27
|
"VERSION",
|
@@ -43,11 +38,11 @@ The intention of this library is to make it easy to build up a structure of node
|
|
43
38
|
"spec/compositor_node_spec.rb",
|
44
39
|
"spec/spec_helper.rb"
|
45
40
|
]
|
46
|
-
s.homepage =
|
41
|
+
s.homepage = "http://github.com/dies-el/compositor_node"
|
47
42
|
s.licenses = ["MIT"]
|
48
43
|
s.require_paths = ["lib"]
|
49
|
-
s.rubygems_version =
|
50
|
-
s.summary =
|
44
|
+
s.rubygems_version = "1.8.23"
|
45
|
+
s.summary = "Ruby library that provides a framework for node-based composition of images."
|
51
46
|
|
52
47
|
if s.respond_to? :specification_version then
|
53
48
|
s.specification_version = 3
|
metadata
CHANGED
@@ -1,106 +1,96 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: compositor_node
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.1
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 1
|
9
|
-
- 0
|
10
|
-
version: 0.1.0
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Andrew Donaldson
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
type: :development
|
23
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
12
|
+
date: 2013-01-17 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: rspec
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
24
17
|
none: false
|
25
|
-
requirements:
|
18
|
+
requirements:
|
26
19
|
- - ~>
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
hash: 3
|
29
|
-
segments:
|
30
|
-
- 2
|
31
|
-
- 3
|
32
|
-
- 0
|
20
|
+
- !ruby/object:Gem::Version
|
33
21
|
version: 2.3.0
|
34
|
-
name: rspec
|
35
|
-
version_requirements: *id001
|
36
|
-
prerelease: false
|
37
|
-
- !ruby/object:Gem::Dependency
|
38
22
|
type: :development
|
39
|
-
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
40
25
|
none: false
|
41
|
-
requirements:
|
26
|
+
requirements:
|
42
27
|
- - ~>
|
43
|
-
- !ruby/object:Gem::Version
|
44
|
-
|
45
|
-
|
46
|
-
- 1
|
47
|
-
- 0
|
48
|
-
- 0
|
49
|
-
version: 1.0.0
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 2.3.0
|
30
|
+
- !ruby/object:Gem::Dependency
|
50
31
|
name: bundler
|
51
|
-
|
52
|
-
|
53
|
-
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ~>
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: 1.0.0
|
54
38
|
type: :development
|
55
|
-
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
56
41
|
none: false
|
57
|
-
requirements:
|
42
|
+
requirements:
|
58
43
|
- - ~>
|
59
|
-
- !ruby/object:Gem::Version
|
60
|
-
|
61
|
-
|
62
|
-
- 1
|
63
|
-
- 6
|
64
|
-
- 1
|
65
|
-
version: 1.6.1
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: 1.0.0
|
46
|
+
- !ruby/object:Gem::Dependency
|
66
47
|
name: jeweler
|
67
|
-
|
68
|
-
|
69
|
-
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ~>
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: 1.6.1
|
70
54
|
type: :development
|
71
|
-
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
72
57
|
none: false
|
73
|
-
requirements:
|
74
|
-
- -
|
75
|
-
- !ruby/object:Gem::Version
|
76
|
-
|
77
|
-
|
78
|
-
- 0
|
79
|
-
version: "0"
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 1.6.1
|
62
|
+
- !ruby/object:Gem::Dependency
|
80
63
|
name: rcov
|
81
|
-
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ! '>='
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
70
|
+
type: :development
|
82
71
|
prerelease: false
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ! '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
78
|
+
description: The intention of this library is to make it easy to build up a structure
|
79
|
+
of nodes which will then be output to a flat file. Imagine using this library as
|
80
|
+
part of a web-app that makes it easy to manipulate images in a structured, visual
|
81
|
+
way (without say, Photoshop).
|
88
82
|
email: andrew@desto.net
|
89
83
|
executables: []
|
90
|
-
|
91
84
|
extensions: []
|
92
|
-
|
93
|
-
extra_rdoc_files:
|
85
|
+
extra_rdoc_files:
|
94
86
|
- LICENSE.txt
|
95
|
-
- README
|
96
87
|
- README.rdoc
|
97
|
-
files:
|
88
|
+
files:
|
98
89
|
- .document
|
99
90
|
- .rspec
|
100
91
|
- Gemfile
|
101
92
|
- Gemfile.lock
|
102
93
|
- LICENSE.txt
|
103
|
-
- README
|
104
94
|
- README.rdoc
|
105
95
|
- Rakefile
|
106
96
|
- VERSION
|
@@ -116,39 +106,32 @@ files:
|
|
116
106
|
- lib/compositor_node/resizer.rb
|
117
107
|
- spec/compositor_node_spec.rb
|
118
108
|
- spec/spec_helper.rb
|
119
|
-
has_rdoc: true
|
120
109
|
homepage: http://github.com/dies-el/compositor_node
|
121
|
-
licenses:
|
110
|
+
licenses:
|
122
111
|
- MIT
|
123
112
|
post_install_message:
|
124
113
|
rdoc_options: []
|
125
|
-
|
126
|
-
require_paths:
|
114
|
+
require_paths:
|
127
115
|
- lib
|
128
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
116
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
129
117
|
none: false
|
130
|
-
requirements:
|
131
|
-
- -
|
132
|
-
- !ruby/object:Gem::Version
|
133
|
-
|
134
|
-
segments:
|
118
|
+
requirements:
|
119
|
+
- - ! '>='
|
120
|
+
- !ruby/object:Gem::Version
|
121
|
+
version: '0'
|
122
|
+
segments:
|
135
123
|
- 0
|
136
|
-
|
137
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
124
|
+
hash: -3755739197257700952
|
125
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
138
126
|
none: false
|
139
|
-
requirements:
|
140
|
-
- -
|
141
|
-
- !ruby/object:Gem::Version
|
142
|
-
|
143
|
-
segments:
|
144
|
-
- 0
|
145
|
-
version: "0"
|
127
|
+
requirements:
|
128
|
+
- - ! '>='
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
version: '0'
|
146
131
|
requirements: []
|
147
|
-
|
148
132
|
rubyforge_project:
|
149
|
-
rubygems_version: 1.
|
133
|
+
rubygems_version: 1.8.23
|
150
134
|
signing_key:
|
151
135
|
specification_version: 3
|
152
136
|
summary: Ruby library that provides a framework for node-based composition of images.
|
153
137
|
test_files: []
|
154
|
-
|
data/README
DELETED
@@ -1,29 +0,0 @@
|
|
1
|
-
Compositor Node
|
2
|
-
===============
|
3
|
-
|
4
|
-
Node based composition:
|
5
|
-
http://en.wikipedia.org/wiki/Digital_compositing#Node-based_and_layer-based_compositing
|
6
|
-
|
7
|
-
The intention of this library is to make it easy to build up a structure of nodes which will then be output to a flat file. Imagine using this library as part of a web-app that makes it easy to manipulate images in a structured, visual way (without say, Photoshop).
|
8
|
-
|
9
|
-
To run the example, type:
|
10
|
-
|
11
|
-
>> ruby main.rb
|
12
|
-
|
13
|
-
This will:
|
14
|
-
|
15
|
-
- Create an image node from a large image ($oversized_image)
|
16
|
-
- Create an image node of some text (transparent PNG) ($overlay_text)
|
17
|
-
|
18
|
-
- Create a resizer node which resizes its source ($oversized_image) to new dimensions
|
19
|
-
- Create a resizer node which resizes its source ($overlay_text) to new dimensions (only width is supplied so it keeps aspect ratio)
|
20
|
-
|
21
|
-
- Create a blender node which mixes together its sources (the resized $oversized_image, $overlay_text) using a 'multiply' method. Offsets $overlay_text by 50 pixels.
|
22
|
-
|
23
|
-
- Create a cropper node which crops the source ($blender) to a particular size / offset
|
24
|
-
|
25
|
-
- Create an output node which will write out it's source (the output of $cropper) at a paticular size, to data/output.png
|
26
|
-
|
27
|
-
Licensed under MIT (see MIT-LICENSE.txt)
|
28
|
-
|
29
|
-
Copyright (c) 2010 Andrew Donaldson http://dies-el.co.uk/
|