@@ -186,21 +186,21 @@ end
186
186
A1 = fill (Gray (1. ), 2 , 2 )
187
187
A2 = fill (RGB (1. , 0. , 0. ), 3 , 3 )
188
188
A3 = fill (RGB (0. , 1. , 0. ), 3 , 3 )
189
- out = mosaicview (A1, A2, A3) |> collect
189
+ out = mosaic (A1, A2, A3) |> collect
190
190
@test_reference " references/mosaicviews/2d_opaque_1.png" out by= isequal
191
- out = mosaicview (A1, A2, A3; npad= 2 , fillvalue= Gray (0. ), nrow= 2 ) |> collect
191
+ out = mosaic (A1, A2, A3; npad= 2 , fillvalue= Gray (0. ), nrow= 2 ) |> collect
192
192
@test_reference " references/mosaicviews/2d_opaque_2.png" out by= isequal
193
- out = mosaicview (A1, A2, A3; npad= 2 , fillvalue= Gray (0. ), nrow= 2 , rowmajor= true ) |> collect
193
+ out = mosaic (A1, A2, A3; npad= 2 , fillvalue= Gray (0. ), nrow= 2 , rowmajor= true ) |> collect
194
194
@test_reference " references/mosaicviews/2d_opaque_3.png" out by= isequal
195
195
196
196
A1 = fill (GrayA (1. ), 2 , 2 )
197
197
A2 = fill (RGBA (1. , 0. , 0. ), 3 , 3 )
198
198
A3 = fill (RGBA (0. , 1. , 0. ), 3 , 3 )
199
- out = mosaicview (A1, A2, A3) |> collect
199
+ out = mosaic (A1, A2, A3) |> collect
200
200
@test_reference " references/mosaicviews/2d_transparent_1.png" out by= isequal
201
- out = mosaicview (A1, A2, A3; npad= 2 , fillvalue= GrayA (0. , 0. ), nrow= 2 ) |> collect
201
+ out = mosaic (A1, A2, A3; npad= 2 , fillvalue= GrayA (0. , 0. ), nrow= 2 ) |> collect
202
202
@test_reference " references/mosaicviews/2d_transparent_2.png" out by= isequal
203
- out = mosaicview (A1, A2, A3; npad= 2 , fillvalue= GrayA (0. , 0. ), nrow= 2 , rowmajor= true ) |> collect
203
+ out = mosaic (A1, A2, A3; npad= 2 , fillvalue= GrayA (0. , 0. ), nrow= 2 , rowmajor= true ) |> collect
204
204
@test_reference " references/mosaicviews/2d_transparent_3.png" out by= isequal
205
205
end
206
206
@@ -209,26 +209,26 @@ end
209
209
A[:, :, 1 ] .= RGB (1. , 0. , 0. )
210
210
A[:, :, 2 ] .= RGB (0. , 1. , 0. )
211
211
A[:, :, 3 ] .= RGB (0. , 0. , 1. )
212
- out = mosaicview (A) |> collect
212
+ out = mosaic (A) |> collect
213
213
@test_reference " references/mosaicviews/3d_opaque_1.png" out by= isequal
214
- out = mosaicview (A; npad= 2 , fillvalue= Gray (0. ), nrow= 2 ) |> collect
214
+ out = mosaic (A; npad= 2 , fillvalue= Gray (0. ), nrow= 2 ) |> collect
215
215
@test_reference " references/mosaicviews/3d_opaque_2.png" out by= isequal
216
- out = mosaicview (A; npad= 2 , fillvalue= Gray (0. ), nrow= 2 , rowmajor= true ) |> collect
216
+ out = mosaic (A; npad= 2 , fillvalue= Gray (0. ), nrow= 2 , rowmajor= true ) |> collect
217
217
@test_reference " references/mosaicviews/3d_opaque_3.png" out by= isequal
218
- out = mosaicview (A, A; npad= 2 , fillvalue= Gray (0. ), nrow= 2 ) |> collect
218
+ out = mosaic (A, A; npad= 2 , fillvalue= Gray (0. ), nrow= 2 ) |> collect
219
219
@test_reference " references/mosaicviews/3d_opaque_4.png" out by= isequal
220
220
221
221
A = fill (RGBA (0. , 0. , 0. ), 2 , 2 , 3 )
222
222
A[:, :, 1 ] .= RGBA (1. , 0. , 0. )
223
223
A[:, :, 2 ] .= RGBA (0. , 1. , 0. )
224
224
A[:, :, 3 ] .= RGBA (0. , 0. , 1. )
225
- out = mosaicview (A) |> collect
225
+ out = mosaic (A) |> collect
226
226
@test_reference " references/mosaicviews/3d_transparent_1.png" out by= isequal
227
- out = mosaicview (A; npad= 2 , fillvalue= GrayA (0. , 0. ), nrow= 2 ) |> collect
227
+ out = mosaic (A; npad= 2 , fillvalue= GrayA (0. , 0. ), nrow= 2 ) |> collect
228
228
@test_reference " references/mosaicviews/3d_transparent_2.png" out by= isequal
229
- out = mosaicview (A; npad= 2 , fillvalue= GrayA (0. ), nrow= 2 , rowmajor= true ) |> collect
229
+ out = mosaic (A; npad= 2 , fillvalue= GrayA (0. ), nrow= 2 , rowmajor= true ) |> collect
230
230
@test_reference " references/mosaicviews/3d_transparent_3.png" out by= isequal
231
- out = mosaicview (A, A; npad= 2 , fillvalue= GrayA (0. ), nrow= 2 ) |> collect
231
+ out = mosaic (A, A; npad= 2 , fillvalue= GrayA (0. ), nrow= 2 ) |> collect
232
232
@test_reference " references/mosaicviews/3d_transparent_4.png" out by= isequal
233
233
end
234
234
@@ -237,26 +237,26 @@ end
237
237
A[1 , :, 1 , 1 ] .= RGB (1. , 0. , 0. )
238
238
A[:, :, 1 , 2 ] .= RGB (0. , 1. , 0. )
239
239
A[:, :, 2 , 1 ] .= RGB (0. , 0. , 1. )
240
- out = mosaicview (A) |> collect
240
+ out = mosaic (A) |> collect
241
241
@test_reference " references/mosaicviews/4d_opaque_1.png" out by= isequal
242
- out = mosaicview (A; npad= 2 , fillvalue= Gray (0. ), nrow= 2 ) |> collect
242
+ out = mosaic (A; npad= 2 , fillvalue= Gray (0. ), nrow= 2 ) |> collect
243
243
@test_reference " references/mosaicviews/4d_opaque_2.png" out by= isequal
244
- out = mosaicview (A; npad= 2 , fillvalue= Gray (0. ), nrow= 2 , rowmajor= true ) |> collect
244
+ out = mosaic (A; npad= 2 , fillvalue= Gray (0. ), nrow= 2 , rowmajor= true ) |> collect
245
245
@test_reference " references/mosaicviews/4d_opaque_3.png" out by= isequal
246
- out = mosaicview (A, A; npad= 2 , fillvalue= Gray (0. ), nrow= 2 ) |> collect
246
+ out = mosaic (A, A; npad= 2 , fillvalue= Gray (0. ), nrow= 2 ) |> collect
247
247
@test_reference " references/mosaicviews/4d_opaque_4.png" out by= isequal
248
248
249
249
A = fill (RGBA (0. , 0. , 0. ), 2 , 2 , 2 , 2 )
250
250
A[1 , :, 1 , 1 ] .= RGBA (1. , 0. , 0. )
251
251
A[:, :, 1 , 2 ] .= RGBA (0. , 1. , 0. )
252
252
A[:, :, 2 , 1 ] .= RGBA (0. , 0. , 1. )
253
- out = mosaicview (A) |> collect
253
+ out = mosaic (A) |> collect
254
254
@test_reference " references/mosaicviews/4d_transparent_1.png" out by= isequal
255
- out = mosaicview (A; npad= 2 , fillvalue= GrayA (0. , 0. ), nrow= 2 ) |> collect
255
+ out = mosaic (A; npad= 2 , fillvalue= GrayA (0. , 0. ), nrow= 2 ) |> collect
256
256
@test_reference " references/mosaicviews/4d_transparent_2.png" out by= isequal
257
- out = mosaicview (A; npad= 2 , fillvalue= GrayA (0. , 0. ), nrow= 2 , rowmajor= true ) |> collect
257
+ out = mosaic (A; npad= 2 , fillvalue= GrayA (0. , 0. ), nrow= 2 , rowmajor= true ) |> collect
258
258
@test_reference " references/mosaicviews/4d_transparent_3.png" out by= isequal
259
- out = mosaicview (A, A; npad= 2 , fillvalue= GrayA (0. ), nrow= 2 ) |> collect
259
+ out = mosaic (A, A; npad= 2 , fillvalue= GrayA (0. ), nrow= 2 ) |> collect
260
260
@test_reference " references/mosaicviews/4d_transparent_4.png" out by= isequal
261
261
end
262
262
end
@@ -351,22 +351,22 @@ end
351
351
@test Ap[axes (A)... ] == ARGB {Float32} .(A)
352
352
353
353
# order irrelevant
354
- A = mosaicview (rand (Float32, 4 , 4 ), rand (RGB{N0f8}, 4 , 4 ))
354
+ A = mosaic (rand (Float32, 4 , 4 ), rand (RGB{N0f8}, 4 , 4 ))
355
355
@test eltype (A) == RGB{Float32}
356
- A = mosaicview (rand (RGB{N0f8}, 4 , 4 ), rand (Float32, 4 , 4 ))
356
+ A = mosaic (rand (RGB{N0f8}, 4 , 4 ), rand (Float32, 4 , 4 ))
357
357
@test eltype (A) == RGB{Float32}
358
358
359
- A = mosaicview (rand (Float32, 4 , 4 ), rand (Gray{Float64}, 4 , 4 ))
359
+ A = mosaic (rand (Float32, 4 , 4 ), rand (Gray{Float64}, 4 , 4 ))
360
360
@test eltype (A) == Gray{Float64}
361
- A = mosaicview (rand (Gray{Float64}, 4 , 4 ), rand (Float32, 4 , 4 ))
361
+ A = mosaic (rand (Gray{Float64}, 4 , 4 ), rand (Float32, 4 , 4 ))
362
362
@test eltype (A) == Gray{Float64}
363
363
364
- A = mosaicview (rand (Float32, 4 , 4 ), rand (Gray{Float64}, 4 , 4 ), rand (RGB{N0f8}, 4 , 4 ))
364
+ A = mosaic (rand (Float32, 4 , 4 ), rand (Gray{Float64}, 4 , 4 ), rand (RGB{N0f8}, 4 , 4 ))
365
365
@test eltype (A) == RGB{Float64}
366
- A = mosaicview (rand (Float32, 4 , 4 ), rand (RGB{N0f8}, 4 , 4 ), rand (Gray{Float64}, 4 , 4 ))
366
+ A = mosaic (rand (Float32, 4 , 4 ), rand (RGB{N0f8}, 4 , 4 ), rand (Gray{Float64}, 4 , 4 ))
367
367
@test eltype (A) == RGB{Float64}
368
368
369
- A = mosaicview (rand (Gray, 4 , 4 ), rand (RGB, 4 , 4 ))
369
+ A = mosaic (rand (Gray, 4 , 4 ), rand (RGB, 4 , 4 ))
370
370
@test eltype (A) == RGB{Float64} # the filltype is always a concrete type
371
371
end
372
372
0 commit comments