Skip to content

Commit bd8f1a2

Browse files
authored
Update RGBRGB output in README.md (#161)
1 parent 0479878 commit bd8f1a2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ This package supports three different notions of multiplication: the inner produ
6565

6666
```julia
6767
julia> c1, c2 = RGB(0.2, 0.3, 0.4), RGB(0.5, 0.3, 0.2)
68-
(RGB{Float64}(0.2,0.3,0.4), RGB{Float64}(0.5,0.3,0.1))
68+
(RGB{Float64}(0.2,0.3,0.4), RGB{Float64}(0.5,0.3,0.2))
6969

7070
julia> c1c2 # \cdot<TAB> # or dot(c1, c2)
7171
0.09000000000000001
@@ -75,10 +75,10 @@ julia> c1⊙c2 # \odot<TAB> # or hadamard(c1, c2)
7575
RGB{Float64}(0.1,0.09,0.08000000000000002)
7676

7777
julia> c1c2 # \otimes<TAB> # or tensor(c1, c2)
78-
RGBRGB{Float64}(
79-
0.1 0.06 0.04000000000000001
78+
RGBRGB{Float64}:
79+
0.1 0.06 0.04
8080
0.15 0.09 0.06
81-
0.2 0.12 0.08000000000000002)
81+
0.2 0.12 0.08
8282
```
8383

8484
Note that `c1⋅c2 = (c1.r*c2.r + c1.g*c2.g + c1.b*c2.b)/3`, where the division by 3 ensures the equivalence `norm(x) == norm(Gray(x)) == norm(RGB(x, x, x))`.
@@ -105,8 +105,8 @@ julia> varmult(⊙, cs)
105105
RGB{Float64}(0.045,0.0,0.020000000000000004)
106106

107107
julia> varmult(, cs)
108-
RGBRGB{Float64}(
108+
RGBRGB{Float64}:
109109
0.045 0.0 -0.03
110110
0.0 0.0 0.0
111-
-0.03 0.0 0.020000000000000004)
111+
-0.03 0.0 0.02
112112
```

0 commit comments

Comments
 (0)