JezK
Edit File: cdesc-SoftMask.ri
U:RDoc::NormalModule[iI" SoftMask:EFI"Prawn::SoftMask;F0o:RDoc::Markup::Document:@parts[o;;[o:RDoc::Markup::Paragraph;[I"LThe Prawn::SoftMask module is used to create arbitrary transparency in ;TI"Ndocument. Using a soft mask allows creating more visually rich documents.;To:RDoc::Markup::BlankLine o; ;[I"AYou must group soft mask and graphics it's applied to under ;TI"Msave_graphics_state because soft mask is a part of graphic state in PDF.;T@o; ;[I" Example:;To:RDoc::Markup::Verbatim;[ I" pdf.save_graphics_state do ;TI" pdf.soft_mask do ;TI"! pdf.fill_color "444444" ;TI"A pdf.fill_polygon [0, 40], [60, 10], [120, 40], [60, 68] ;TI" end ;TI" pdf.fill_color '000000' ;TI"+ pdf.fill_rectangle [0, 50], 120, 68 ;TI"end;T:@format0: @fileI"lib/prawn/soft_mask.rb;T:0@omit_headings_from_table_of_contents_below0; 0;0[ [ [ [[I" class;T[[:public[ [:protected[ [:private[ [I" instance;T[[;[[I"soft_mask;FI"lib/prawn/soft_mask.rb;T[;[ [;[[I"soft_mask_registry;F@8[ [U:RDoc::Context::Section[i 0o;;[ ; 0;0[@#I" Prawn;FcRDoc::NormalModule