use strict;
use Excel::Writer::XLSX;
my $workbook = Excel::Writer::XLSX->new( 'Simply.xlsx' );
my $worksheet2 = $workbook->add_worksheet('graph');
my $arrow = $workbook->add_shape( type => 'leftRightArrow', line => '', fill => '12');
$worksheet2->insert_shape( 'D2', $arrow, 64*5.61+(0.1/0.5*64),274.057614847121, 1.3*0.9*3/1.65-0.3, 0.15);
my $rect = $workbook->add_shape( type => 'rect', text => "Margin", line => '', font_size => '10', width => 50, height => 120);
$worksheet2->insert_shape( 'D2', $rect, 64*5.61+(0.1/0.5*64),260.057614847121, 1.3*0.9*3/1.65-0.3, 0.15);
观察: 无论我使用何种颜色代码,箭头都会以黑色填充。 字体大小保持为“8”。 任何人都可以检查我的填充和字体大小相关的代码是否有问题?