@@ -284,28 +284,28 @@ defmodule Scenic.Assets.Stream.Bitmap do
284
284
def put_offset ( mutable , offset , color )
285
285
286
286
def put_offset ( { @ mutable , { w , h , :g } , p } , offset , color ) when is_integer ( offset ) do
287
- if offset > w * h , do: raise "Offset is out of bounds"
287
+ if offset > w * h , do: raise ( "Offset is out of bounds" )
288
288
{ :color_g , g } = Color . to_g ( color )
289
289
nif_put ( p , offset , g )
290
290
{ @ mutable , { w , h , :g } , p }
291
291
end
292
292
293
293
def put_offset ( { @ mutable , { w , h , :ga } , p } , offset , color ) when is_integer ( offset ) do
294
- if offset > w * h , do: raise "Offset is out of bounds"
294
+ if offset > w * h , do: raise ( "Offset is out of bounds" )
295
295
{ :color_ga , { g , a } } = Color . to_ga ( color )
296
296
nif_put ( p , offset , g , a )
297
297
{ @ mutable , { w , h , :ga } , p }
298
298
end
299
299
300
300
def put_offset ( { @ mutable , { w , h , :rgb } , p } , offset , color ) when is_integer ( offset ) do
301
- if offset > w * h , do: raise "Offset is out of bounds"
301
+ if offset > w * h , do: raise ( "Offset is out of bounds" )
302
302
{ :color_rgb , { r , g , b } } = Color . to_rgb ( color )
303
303
nif_put ( p , offset , r , g , b )
304
304
{ @ mutable , { w , h , :rgb } , p }
305
305
end
306
306
307
307
def put_offset ( { @ mutable , { w , h , :rgba } , p } , offset , color ) when is_integer ( offset ) do
308
- if offset > w * h , do: raise "Offset is out of bounds"
308
+ if offset > w * h , do: raise ( "Offset is out of bounds" )
309
309
{ :color_rgba , { r , g , b , a } } = Color . to_rgba ( color )
310
310
nif_put ( p , offset , r , g , b , a )
311
311
{ @ mutable , { w , h , :rgba } , p }
0 commit comments